.seller-leads-page {
  display: grid;
  gap: 18px;
}

.seller-leads-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, auto);
  gap: 18px;
  align-items: stretch;
  overflow: hidden;
  position: relative;
}

.seller-leads-title h1 {
  margin: 8px 0 8px;
  font-size: clamp(2rem, 4vw, 4rem);
  line-height: .95;
}

.seller-leads-title p {
  color: var(--text-soft);
  max-width: 760px;
  margin: 0;
}

.seller-support-card {
  border: 1px solid color-mix(in srgb, var(--accent) 26%, var(--border));
  border-radius: 24px;
  padding: 18px;
  background:
    radial-gradient(circle at 20% 10%, color-mix(in srgb, var(--accent) 18%, transparent), transparent 42%),
    var(--surface-alt);
  display: grid;
  align-content: center;
  gap: 6px;
  min-width: 260px;
}

.seller-support-card span {
  color: var(--text-soft);
  font-weight: 900;
  letter-spacing: .1em;
  text-transform: uppercase;
  font-size: .78rem;
}

.seller-support-card strong {
  color: var(--heading);
  font-size: 1.35rem;
}

.seller-support-card a {
  color: var(--accent-strong);
  font-weight: 800;
  word-break: break-word;
}

.seller-filter-grid {
  display: grid;
  grid-template-columns: 1.4fr .8fr .8fr .65fr;
  gap: 12px;
}

.seller-filter-grid label {
  display: grid;
  gap: 7px;
}

.seller-filter-grid label span {
  color: var(--text-soft);
  font-weight: 900;
  font-size: .78rem;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.seller-filter-grid input,
.seller-filter-grid select,
.seller-lead-detail textarea,
.seller-lead-detail input {
  min-height: 44px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--surface);
  color: var(--text);
  padding: 0 14px;
  outline: none;
}

.seller-lead-detail textarea {
  min-height: 96px;
  resize: vertical;
  padding: 12px 14px;
}

.seller-filter-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 14px;
}

.seller-leads-note {
  margin: 12px 0 0;
  color: var(--text-soft);
  font-size: .9rem;
}

.seller-leads-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(360px, .95fr);
  gap: 18px;
  align-items: start;
}

.seller-section-heading {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: start;
  margin-bottom: 14px;
}

.seller-section-heading h2 {
  margin: 4px 0 0;
}

.seller-result-count {
  border: 1px solid var(--border);
  background: var(--surface-alt);
  border-radius: 999px;
  padding: 8px 12px;
  color: var(--text-soft);
  font-weight: 900;
  white-space: nowrap;
}

.seller-leads-state {
  color: var(--text-soft);
  padding: 16px;
  border: 1px dashed var(--border);
  border-radius: 18px;
  background: var(--surface-alt);
}

.seller-leads-state[hidden] {
  display: none !important;
}

.seller-leads-list {
  display: grid;
  gap: 12px;
}

.seller-lead-row {
  width: 100%;
  text-align: left;
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 14px;
  background: var(--surface-alt);
  color: var(--text);
  cursor: pointer;
  display: grid;
  gap: 8px;
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.seller-lead-row:hover,
.seller-lead-row.is-active {
  transform: translateY(-1px);
  border-color: color-mix(in srgb, var(--accent) 42%, var(--border));
  box-shadow: var(--shadow-sm);
}

.seller-lead-row-head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: start;
}

.seller-lead-row strong {
  color: var(--heading);
  font-size: 1rem;
}

.seller-lead-row small {
  color: var(--text-soft);
  font-weight: 700;
}

.seller-lead-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.seller-chip {
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text-soft);
  font-size: .78rem;
  font-weight: 900;
  padding: 6px 9px;
}

.seller-chip.is-hot {
  color: var(--heading);
  border-color: color-mix(in srgb, var(--accent) 38%, var(--border));
  background: var(--accent-soft);
}

.seller-pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 16px;
}

.seller-lead-detail {
  position: sticky;
  top: 96px;
  display: grid;
  gap: 14px;
}

.seller-empty-detail {
  color: var(--text-soft);
}

.seller-detail-head {
  display: grid;
  gap: 8px;
}

.seller-detail-head h2 {
  margin: 0;
}

.seller-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.seller-detail-item {
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 12px;
  background: var(--surface-alt);
  display: grid;
  gap: 4px;
}

.seller-detail-item span {
  color: var(--text-soft);
  font-size: .76rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.seller-detail-item strong,
.seller-detail-item a {
  color: var(--heading);
  font-weight: 850;
  word-break: break-word;
}

.seller-detail-message {
  border-radius: 18px;
  background: var(--surface-alt);
  border: 1px solid var(--border);
  padding: 14px;
  white-space: pre-wrap;
}

.seller-status-actions {
  display: grid;
  gap: 10px;
}

.seller-inline-form {
  display: grid;
  gap: 10px;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: var(--surface-alt);
}

.seller-inline-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.seller-notes-list,
.seller-tasks-list {
  display: grid;
  gap: 8px;
}

.seller-note-card,
.seller-task-card {
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 10px 12px;
  background: var(--surface);
  color: var(--text-soft);
  display: grid;
  gap: 4px;
}

.seller-note-card strong,
.seller-task-card strong {
  color: var(--heading);
}

.seller-task-card.is-editing {
  border-color: color-mix(in srgb, var(--accent) 60%, var(--border));
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 12%, transparent);
}

.seller-task-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.seller-task-edit {
  border: 1px solid color-mix(in srgb, var(--accent) 32%, var(--border));
  border-radius: 999px;
  background: var(--surface-alt);
  color: var(--heading);
  cursor: pointer;
  font-size: .78rem;
  font-weight: 900;
  padding: 6px 10px;
}

.seller-task-edit:hover,
.seller-task-edit:focus-visible {
  border-color: color-mix(in srgb, var(--accent) 64%, var(--border));
  outline: none;
}

.seller-task-meta {
  display: grid;
  gap: 3px;
  color: var(--text-soft);
  font-size: .86rem;
}

.seller-task-meta em {
  font-style: normal;
  opacity: .78;
}

@media (max-width: 980px) {
  .seller-leads-hero,
  .seller-leads-layout,
  .seller-filter-grid {
    grid-template-columns: 1fr;
  }
  .seller-lead-detail {
    position: static;
  }
}

@media (max-width: 560px) {
  .seller-detail-grid {
    grid-template-columns: 1fr;
  }
  .seller-lead-row-head,
  .seller-section-heading {
    display: grid;
  }
}


/* ===== V65 sesión real de publicador en Leads ===== */
.seller-session-box {
  margin-top: 12px;
  border: 1px solid color-mix(in srgb, var(--accent) 30%, var(--border));
  background: var(--accent-soft);
  color: var(--heading);
  border-radius: 18px;
  padding: 12px 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  align-items: center;
}

.seller-session-box span {
  color: var(--text);
  font-weight: 800;
}

.seller-session-box a {
  color: var(--accent-strong);
  font-weight: 900;
}

.seller-session-box.is-warning {
  background: var(--surface-alt);
  border-color: color-mix(in srgb, #c68a00 42%, var(--border));
}

.seller-session-box.is-ok {
  border-color: color-mix(in srgb, #16803c 42%, var(--border));
}


/* ===== v141 Seller: resumen comercial + notificaciones + respuesta/visita ===== */
.seller-commercial-overview {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(360px, 1.1fr);
  gap: 18px;
  align-items: stretch;
}
.seller-summary-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.seller-summary-grid article {
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 16px;
  background: var(--surface-alt);
  display: grid;
  gap: 4px;
}
.seller-summary-grid article span,
.seller-summary-grid article small {
  color: var(--text-soft);
  font-weight: 900;
  font-size: .78rem;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.seller-summary-grid article strong {
  color: var(--heading);
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  line-height: 1;
}
.seller-notifications-panel {
  display: grid;
  gap: 12px;
}
.seller-notifications-list {
  display: grid;
  gap: 10px;
}
.seller-notification-item {
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 12px;
  background: var(--surface-alt);
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 10px;
}
.seller-notification-item.is-unread {
  border-color: color-mix(in srgb, var(--accent) 44%, var(--border));
  background: color-mix(in srgb, var(--accent) 9%, var(--surface-alt));
}
.seller-notification-item strong {
  color: var(--heading);
}
.seller-notification-item p {
  margin: 4px 0;
  color: var(--text-soft);
}
.seller-notification-item span {
  color: var(--text-muted, var(--text-soft));
  font-size: .82rem;
  font-weight: 800;
}
.seller-customer-reply,
.seller-visit-scheduler {
  border-color: color-mix(in srgb, var(--accent) 24%, var(--border));
  background: color-mix(in srgb, var(--accent) 5%, var(--surface-alt));
}
@media (max-width: 980px) {
  .seller-commercial-overview,
  .seller-leads-layout,
  .seller-leads-hero {
    grid-template-columns: 1fr;
  }
  .seller-lead-detail {
    position: static;
  }
}
@media (max-width: 680px) {
  .seller-summary-grid {
    grid-template-columns: 1fr;
  }
  .seller-notification-item {
    display: grid;
  }
}

/* v167 · Actividad comercial completa dentro de Leads */
.seller-section-description {
  margin: 6px 0 0;
  color: var(--text-soft);
  max-width: 780px;
  line-height: 1.55;
}

.seller-section-heading.is-compact {
  margin-bottom: 10px;
  align-items: center;
}

.seller-commercial-overview {
  display: grid;
  gap: 18px;
}

.seller-overview-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.seller-stat-card {
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 14px;
  background:
    linear-gradient(145deg, color-mix(in srgb, var(--surface-alt) 90%, var(--accent) 10%), var(--surface));
  display: grid;
  gap: 7px;
  min-height: 122px;
  min-width: 0;
}

.seller-stat-card.is-commercial-signal {
  grid-column: span 2;
  min-height: 112px;
}

.seller-stat-card span {
  color: var(--text-soft);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .08em;
  font-size: .72rem;
  overflow-wrap: anywhere;
}

.seller-stat-card strong {
  color: var(--heading);
  font-size: clamp(1.45rem, 3vw, 2.25rem);
  line-height: 1;
}

.seller-stat-card small {
  color: var(--text-soft);
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.seller-property-activity-shell {
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 16px;
  background: var(--surface-alt);
  display: grid;
  gap: 12px;
}

.seller-property-activity-list,
.seller-activity-timeline {
  display: grid;
  gap: 10px;
}

.seller-activity-row {
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 12px;
  background: var(--surface);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
}

.seller-activity-row strong {
  color: var(--heading);
  display: block;
  margin-bottom: 4px;
}

.seller-activity-row span {
  color: var(--text-soft);
  font-weight: 700;
}

.seller-activity-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.seller-detail-grid-wide {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.seller-property-snapshot,
.seller-property-activity-detail {
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 14px;
  background: var(--surface-alt);
  display: grid;
  gap: 12px;
}

.seller-property-snapshot h3,
.seller-property-activity-detail h3 {
  margin: 4px 0 0;
  color: var(--heading);
}

.seller-activity-empty {
  border: 1px dashed var(--border);
  border-radius: 18px;
  padding: 14px;
  background: var(--surface);
  color: var(--text-soft);
  line-height: 1.55;
}

@media (max-width: 1180px) {
  .seller-overview-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .seller-stat-card.is-commercial-signal {
    grid-column: span 1;
  }
}

@media (max-width: 760px) {
  .seller-overview-grid,
  .seller-detail-grid-wide {
    grid-template-columns: 1fr;
  }

  .seller-activity-row {
    grid-template-columns: 1fr;
  }

  .seller-activity-tags {
    justify-content: flex-start;
  }
}

/* v170 · Tooltips explicativos y layout de métricas en dos filas */
.seller-commercial-overview {
  grid-template-columns: 1fr;
  align-items: stretch;
}

.seller-overview-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.seller-stat-card.is-commercial-signal {
  grid-column: span 2;
}

.seller-stat-label {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  min-width: 0;
}

.seller-stat-label > span {
  min-width: 0;
  color: var(--text-soft);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .08em;
  font-size: .72rem;
  overflow-wrap: anywhere;
}

.seller-stat-card > span {
  display: none;
}

.seller-help-tooltip {
  position: relative;
  width: 24px;
  height: 24px;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--accent) 34%, var(--border));
  background: color-mix(in srgb, var(--accent) 8%, var(--surface));
  color: var(--accent-strong);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  font-size: .78rem;
  font-weight: 950;
  line-height: 1;
  cursor: help;
  z-index: 2;
}

.seller-help-tooltip::before,
.seller-help-tooltip::after {
  position: absolute;
  left: 50%;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .16s ease, transform .16s ease, visibility .16s ease;
}

.seller-help-tooltip::before {
  content: '';
  bottom: calc(100% + 5px);
  transform: translateX(-50%) translateY(4px);
  border: 7px solid transparent;
  border-top-color: color-mix(in srgb, var(--heading) 92%, var(--surface));
}

.seller-help-tooltip::after {
  content: attr(data-tooltip);
  bottom: calc(100% + 18px);
  width: min(300px, 78vw);
  transform: translateX(-50%) translateY(4px);
  border: 1px solid color-mix(in srgb, var(--accent) 26%, var(--border));
  border-radius: 16px;
  padding: 12px 13px;
  background: color-mix(in srgb, var(--heading) 92%, var(--surface));
  color: var(--surface);
  box-shadow: var(--shadow-md, 0 18px 44px rgba(0, 0, 0, .22));
  font-size: .84rem;
  font-weight: 750;
  line-height: 1.45;
  letter-spacing: 0;
  text-align: left;
  text-transform: none;
  white-space: normal;
}

.seller-help-tooltip:hover::before,
.seller-help-tooltip:hover::after,
.seller-help-tooltip:focus::before,
.seller-help-tooltip:focus::after,
.seller-help-tooltip.is-open::before,
.seller-help-tooltip.is-open::after {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.seller-help-tooltip:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--accent) 35%, transparent);
  outline-offset: 2px;
}

.seller-property-activity-shell .seller-section-heading h3 {
  margin-top: 2px;
}

@media (max-width: 1180px) {
  .seller-overview-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .seller-stat-card.is-commercial-signal {
    grid-column: span 1;
  }
}

@media (max-width: 760px) {
  .seller-overview-grid {
    grid-template-columns: 1fr;
  }

  .seller-help-tooltip::before,
  .seller-help-tooltip::after {
    left: auto;
    right: 0;
    transform: translateY(4px);
  }

  .seller-help-tooltip::after {
    width: min(280px, 82vw);
  }

  .seller-help-tooltip:hover::before,
  .seller-help-tooltip:hover::after,
  .seller-help-tooltip:focus::before,
  .seller-help-tooltip:focus::after,
  .seller-help-tooltip.is-open::before,
  .seller-help-tooltip.is-open::after {
    transform: translateY(0);
  }
}


/* v171 · Limpieza de filtros de Leads: sin soporte, sin cuenta publicador visible y acciones en una sola fila */
.seller-leads-hero {
  grid-template-columns: 1fr;
}

.seller-leads-title p {
  max-width: 920px;
}

.seller-filter-toolbar {
  display: grid;
  grid-template-columns: minmax(240px, 1.15fr) minmax(190px, .5fr) minmax(210px, .55fr) auto;
  gap: 12px;
  align-items: end;
}

.seller-filter-toolbar label {
  display: grid;
  gap: 7px;
  min-width: 0;
}

.seller-filter-toolbar label span {
  color: var(--text-soft);
  font-weight: 900;
  font-size: .78rem;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.seller-filter-toolbar input,
.seller-filter-toolbar select {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--surface);
  color: var(--text);
  padding: 0 14px;
  outline: none;
}

.seller-filter-toolbar .seller-filter-actions {
  margin-top: 0;
  align-self: end;
  display: flex;
  gap: 10px;
  flex-wrap: nowrap;
  justify-content: flex-end;
}

.seller-filter-toolbar .seller-filter-actions .btn {
  min-height: 44px;
  white-space: nowrap;
}

@media (max-width: 1040px) {
  .seller-filter-toolbar {
    grid-template-columns: 1fr 220px 220px;
  }

  .seller-filter-toolbar .seller-filter-actions {
    grid-column: 1 / -1;
    justify-content: flex-start;
    flex-wrap: wrap;
  }
}

@media (max-width: 680px) {
  .seller-filter-toolbar {
    grid-template-columns: 1fr;
  }

  .seller-filter-toolbar .seller-filter-actions {
    display: grid;
    grid-template-columns: 1fr;
  }
}


/* v172 · Tooltips responsivos fuera del flujo y texto superior sin saltos innecesarios */
@media (min-width: 1100px) {
  .seller-leads-title p {
    max-width: none;
    white-space: nowrap;
  }
}

.seller-help-tooltip::before,
.seller-help-tooltip::after {
  display: none !important;
  content: none !important;
}

.seller-metric-tooltip {
  position: fixed;
  z-index: 9999;
  max-width: min(340px, calc(100vw - 24px));
  border: 1px solid color-mix(in srgb, var(--accent) 28%, var(--border));
  border-radius: 16px;
  padding: 12px 13px;
  background: color-mix(in srgb, var(--heading) 94%, var(--surface));
  color: var(--surface);
  box-shadow: var(--shadow-md, 0 18px 44px rgba(0, 0, 0, .24));
  font-size: .84rem;
  font-weight: 750;
  line-height: 1.45;
  letter-spacing: 0;
  text-align: left;
  text-transform: none;
  white-space: normal;
  pointer-events: none;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity .14s ease, transform .14s ease;
}

.seller-metric-tooltip.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.seller-metric-tooltip::after {
  content: '';
  position: absolute;
  left: var(--seller-tooltip-arrow-left, 50%);
  width: 12px;
  height: 12px;
  background: color-mix(in srgb, var(--heading) 94%, var(--surface));
  border-left: 1px solid color-mix(in srgb, var(--accent) 28%, var(--border));
  border-top: 1px solid color-mix(in srgb, var(--accent) 28%, var(--border));
  transform: translateX(-50%) rotate(45deg);
}

.seller-metric-tooltip.is-above::after {
  bottom: -7px;
  border-left: 0;
  border-top: 0;
  border-right: 1px solid color-mix(in srgb, var(--accent) 28%, var(--border));
  border-bottom: 1px solid color-mix(in srgb, var(--accent) 28%, var(--border));
}

.seller-metric-tooltip.is-below::after {
  top: -7px;
}

@media (max-width: 760px) {
  .seller-metric-tooltip {
    font-size: .82rem;
    max-width: calc(100vw - 20px);
  }
}

/* v173 · Detalle de Lead profesional: seguimiento, notas amplias y planificador simple */
.seller-detail-section {
  display: grid;
  gap: 8px;
}

.seller-inline-form label,
.seller-inline-form .seller-inline-row,
.seller-status-panel label,
.seller-note-panel label,
.seller-customer-reply label,
.seller-followup-planner label {
  width: 100%;
  min-width: 0;
  display: grid;
  gap: 8px;
}

.seller-inline-form select,
.seller-inline-form input,
.seller-inline-form textarea,
.seller-textarea-wide {
  width: 100%;
  box-sizing: border-box;
}

.seller-textarea-wide {
  min-height: 118px;
}

.seller-status-panel textarea,
.seller-note-panel textarea,
.seller-customer-reply textarea,
.seller-followup-planner textarea {
  min-height: 118px;
}

.seller-field-label,
.seller-planner-grid label > span {
  color: var(--text-soft);
  font-weight: 900;
  font-size: .78rem;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.seller-detail-message.is-empty,
.seller-empty-mini {
  color: var(--text-soft);
  border-style: dashed;
}

.seller-history-panel {
  border-color: color-mix(in srgb, var(--accent) 26%, var(--border));
}

.seller-commercial-timeline {
  display: grid;
  gap: 10px;
}

.seller-timeline-row {
  display: grid;
  grid-template-columns: 14px minmax(0, 1fr);
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: var(--surface);
}

.seller-timeline-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  margin-top: 6px;
  background: color-mix(in srgb, var(--accent) 58%, var(--heading));
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 16%, transparent);
}

.seller-timeline-head {
  display: flex;
  gap: 10px;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
}

.seller-timeline-head strong {
  color: var(--heading);
}

.seller-timeline-head span,
.seller-timeline-row small {
  color: var(--text-soft);
  font-weight: 800;
  font-size: .82rem;
}

.seller-timeline-row p {
  margin: 6px 0 0;
  color: var(--text);
  white-space: pre-wrap;
}

.seller-customer-reply.is-disabled {
  opacity: .9;
}

.seller-customer-reply textarea:disabled,
.seller-customer-reply button:disabled {
  cursor: not-allowed;
  opacity: .62;
}

.seller-form-helper,
.seller-form-feedback {
  margin: 0;
  color: var(--text-soft);
  font-size: .92rem;
  line-height: 1.45;
}

.seller-form-helper.is-warning,
.seller-form-feedback.is-error {
  color: #8a4b12;
  background: rgba(255, 190, 92, .14);
  border: 1px solid rgba(255, 190, 92, .35);
  border-radius: 14px;
  padding: 10px 12px;
}

.seller-planner-grid {
  display: grid;
  grid-template-columns: minmax(180px, 1.4fr) minmax(130px, .8fr) minmax(110px, .65fr);
  gap: 10px;
  align-items: end;
}

.seller-followup-planner .seller-tasks-list {
  margin-top: 4px;
}

@media (max-width: 760px) {
  .seller-planner-grid {
    grid-template-columns: 1fr;
  }

  .seller-timeline-head {
    display: grid;
    gap: 4px;
  }
}

/* v174 · Selectores nativos de fecha y hora para planificar seguimiento */
.seller-picker-field {
  min-width: 0;
}

.seller-picker-control {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
  min-width: 0;
}

.seller-picker-control input[data-followup-date-display],
.seller-picker-control input[data-followup-time-display] {
  width: 100%;
  min-height: 44px;
  padding-right: 48px;
  cursor: pointer;
}

.seller-picker-trigger {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  width: 34px;
  height: 34px;
  display: inline-grid;
  place-items: center;
  border: 1px solid color-mix(in srgb, var(--accent) 26%, var(--border));
  border-radius: 999px;
  background: color-mix(in srgb, var(--surface) 92%, var(--accent));
  color: var(--heading);
  cursor: pointer;
  line-height: 1;
  box-shadow: 0 6px 18px rgba(15, 23, 42, .06);
}

.seller-picker-trigger:hover,
.seller-picker-trigger:focus-visible {
  border-color: color-mix(in srgb, var(--accent) 60%, var(--border));
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 18%, transparent), 0 8px 22px rgba(15, 23, 42, .08);
  outline: none;
}

@media (max-width: 760px) {
  .seller-picker-control input[data-followup-date-display],
  .seller-picker-control input[data-followup-time-display] {
    min-height: 48px;
  }
}

.seller-picker-trigger svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}


.seller-picker-control input[data-followup-date-display] {
  width: 100%;
  min-height: 44px;
  padding-right: 48px;
  cursor: pointer;
  background: var(--surface);
  color: var(--heading);
  font-weight: 850;
}

.seller-date-display-input[readonly] {
  background: var(--surface);
  color: var(--heading);
}

.seller-date-picker-popover {
  position: fixed;
  z-index: 9999;
  display: none;
  width: min(380px, calc(100vw - 24px));
  padding: 14px;
  border: 1px solid color-mix(in srgb, var(--accent) 28%, var(--border));
  border-radius: 24px;
  background:
    radial-gradient(circle at 12% 0%, color-mix(in srgb, var(--accent) 14%, transparent), transparent 38%),
    var(--surface);
  color: var(--text);
  box-shadow: 0 22px 54px rgba(15, 23, 42, .20);
}

.seller-date-picker-popover.is-visible {
  display: grid;
  gap: 12px;
}

.seller-date-picker-head,
.seller-date-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.seller-date-picker-head {
  justify-content: space-between;
}

.seller-date-picker-head strong {
  color: var(--heading);
  font-size: 1.08rem;
  text-transform: capitalize;
}

.seller-date-picker-head button {
  width: 36px;
  height: 36px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface-alt);
  color: var(--heading);
  cursor: pointer;
  font-size: 1.4rem;
  line-height: 1;
}

.seller-date-picker-head button:hover,
.seller-date-picker-head button:focus-visible {
  border-color: color-mix(in srgb, var(--accent) 60%, var(--border));
  outline: none;
}

.seller-date-weekdays,
.seller-date-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
}

.seller-date-weekdays span {
  color: var(--text-soft);
  font-size: .72rem;
  font-weight: 900;
  text-align: center;
  text-transform: uppercase;
}

.seller-date-day,
.seller-date-empty {
  min-height: 38px;
  border-radius: 999px;
}

.seller-date-day {
  border: 1px solid transparent;
  background: var(--surface-alt);
  color: var(--heading);
  cursor: pointer;
  font-weight: 850;
}

.seller-date-day:hover,
.seller-date-day:focus-visible {
  border-color: color-mix(in srgb, var(--accent) 56%, var(--border));
  outline: none;
}

.seller-date-day.is-today {
  border-color: color-mix(in srgb, var(--accent) 42%, var(--border));
}

.seller-date-day.is-selected {
  background: var(--heading);
  color: var(--surface);
  box-shadow: 0 8px 18px rgba(15, 23, 42, .14);
}

.seller-date-actions {
  justify-content: flex-end;
  border-top: 1px solid var(--border);
  padding-top: 12px;
}

.seller-followup-actions {
  align-items: stretch;
}

/* v175 · Selector profesional de hora: reloj análogo, AM/PM, atajos y soporte mouse/touch */
.seller-picker-control input[data-followup-time-display],
.seller-picker-control input[data-followup-date-display] {
  width: 100%;
  min-height: 44px;
  padding-right: 48px;
  cursor: pointer;
}

.seller-time-display-input[readonly] {
  background: var(--surface);
  color: var(--heading);
  font-weight: 850;
}

.seller-time-picker-popover {
  position: fixed;
  z-index: 9999;
  display: none;
  width: min(360px, calc(100vw - 24px));
  padding: 14px;
  border: 1px solid color-mix(in srgb, var(--accent) 28%, var(--border));
  border-radius: 24px;
  background:
    radial-gradient(circle at 12% 0%, color-mix(in srgb, var(--accent) 14%, transparent), transparent 38%),
    var(--surface);
  color: var(--text);
  box-shadow: 0 22px 54px rgba(15, 23, 42, .20);
}

.seller-time-picker-popover.is-visible {
  display: grid;
  gap: 12px;
}

.seller-time-picker-head,
.seller-time-actions,
.seller-time-period,
.seller-time-picker-tabs,
.seller-time-quick {
  display: flex;
  gap: 8px;
  align-items: center;
}

.seller-time-picker-head {
  justify-content: space-between;
}

.seller-time-picker-head span {
  display: block;
  color: var(--text-soft);
  font-weight: 900;
  font-size: .72rem;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.seller-time-picker-head strong {
  display: block;
  margin-top: 2px;
  color: var(--heading);
  font-size: 1.42rem;
  letter-spacing: -.02em;
}

.seller-time-picker-close {
  width: 34px;
  height: 34px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface-alt);
  color: var(--heading);
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
}

.seller-time-picker-tabs,
.seller-time-period {
  padding: 4px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface-alt);
}

.seller-time-picker-tabs button,
.seller-time-period button,
.seller-time-quick button {
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--text-soft);
  font-weight: 900;
  cursor: pointer;
}

.seller-time-picker-tabs button,
.seller-time-period button {
  flex: 1;
  min-height: 34px;
  padding: 0 14px;
}

.seller-time-picker-tabs button.is-active,
.seller-time-period button.is-active {
  background: var(--heading);
  color: var(--surface);
  box-shadow: 0 8px 18px rgba(15, 23, 42, .14);
}

.seller-time-clock {
  display: grid;
  place-items: center;
  touch-action: none;
  user-select: none;
}

.seller-time-clock-face {
  position: relative;
  width: min(248px, calc(100vw - 86px));
  aspect-ratio: 1;
  border-radius: 50%;
  border: 1px solid color-mix(in srgb, var(--accent) 22%, var(--border));
  background:
    radial-gradient(circle at 50% 50%, color-mix(in srgb, var(--accent) 15%, transparent) 0 3px, transparent 4px),
    radial-gradient(circle at 50% 50%, transparent 0 58%, color-mix(in srgb, var(--accent) 8%, transparent) 59% 100%),
    var(--surface-alt);
  box-shadow: inset 0 0 0 8px color-mix(in srgb, var(--surface) 70%, transparent), 0 14px 34px rgba(15, 23, 42, .08);
}

.seller-time-clock-hand {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 3px;
  height: 34%;
  border-radius: 999px;
  background: linear-gradient(to top, color-mix(in srgb, var(--accent) 68%, var(--heading)), var(--heading));
  transform-origin: 50% 100%;
  transform: translate(-50%, -100%) rotate(var(--time-hand-angle));
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 12%, transparent);
  pointer-events: none;
}

.seller-time-clock-center {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 14px;
  height: 14px;
  border-radius: 999px;
  background: var(--heading);
  border: 3px solid color-mix(in srgb, var(--surface) 92%, var(--accent));
  transform: translate(-50%, -50%);
  pointer-events: none;
  box-shadow: 0 0 0 5px color-mix(in srgb, var(--accent) 14%, transparent);
}

.seller-time-clock-mark {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 34px;
  height: 34px;
  display: inline-grid;
  place-items: center;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--heading);
  font-weight: 900;
  cursor: pointer;
  transform: translate(-50%, -50%) rotate(var(--time-mark-angle)) translateY(-98px) rotate(calc(-1 * var(--time-mark-angle)));
}

.seller-time-clock-mark:hover,
.seller-time-clock-mark:focus-visible,
.seller-time-clock-mark.is-selected {
  background: var(--heading);
  color: var(--surface);
  outline: none;
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 18%, transparent);
}

.seller-time-period {
  width: 100%;
}

.seller-time-quick {
  flex-wrap: wrap;
}

.seller-time-quick button {
  min-height: 32px;
  padding: 0 10px;
  border: 1px solid var(--border);
  background: var(--surface-alt);
}

.seller-time-quick button:hover,
.seller-time-quick button:focus-visible {
  border-color: color-mix(in srgb, var(--accent) 52%, var(--border));
  color: var(--heading);
  outline: none;
}

.seller-time-actions {
  justify-content: flex-end;
  border-top: 1px solid var(--border);
  padding-top: 12px;
}

@media (max-width: 760px) {
  .seller-picker-control input[data-followup-time-display],
  .seller-picker-control input[data-followup-date-display] {
    min-height: 48px;
  }

  .seller-time-picker-popover {
    border-radius: 22px;
    padding: 12px;
  }

  .seller-time-clock-face {
    width: min(236px, calc(100vw - 78px));
  }

  .seller-time-clock-mark {
    transform: translate(-50%, -50%) rotate(var(--time-mark-angle)) translateY(-92px) rotate(calc(-1 * var(--time-mark-angle)));
  }

  .seller-time-actions,
  .seller-date-actions,
  .seller-followup-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 420px) {
  .seller-date-day,
  .seller-date-empty {
    min-height: 34px;
  }
}


/* v177 · Estado visto/no visto y edición comercial */
.seller-heading-actions,
.seller-card-actions,
.seller-note-actions,
.seller-lead-actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.seller-read-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 26px;
  padding: 5px 10px;
  border-radius: 999px;
  border: 1px solid var(--border);
  font-size: .74rem;
  font-weight: 950;
  letter-spacing: .04em;
  text-transform: uppercase;
  white-space: nowrap;
}

.seller-read-badge.is-seen {
  color: var(--text-soft);
  background: color-mix(in srgb, var(--surface) 84%, var(--border));
}

.seller-read-badge.is-unseen {
  color: var(--heading);
  background: color-mix(in srgb, var(--accent) 18%, var(--surface));
  border-color: color-mix(in srgb, var(--accent) 54%, var(--border));
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 10%, transparent);
}

.seller-lead-row.is-unseen,
.seller-note-card.is-unseen,
.seller-task-card.is-unseen,
.seller-activity-row.is-unseen,
.seller-timeline-row.is-unseen,
.seller-customer-message.is-unseen {
  border-color: color-mix(in srgb, var(--accent) 50%, var(--border));
  background:
    linear-gradient(90deg, color-mix(in srgb, var(--accent) 12%, transparent), transparent 42%),
    var(--surface);
}

.seller-lead-row.is-seen {
  opacity: .96;
}

.seller-lead-row.is-unseen::before,
.seller-note-card.is-unseen::before,
.seller-task-card.is-unseen::before,
.seller-activity-row.is-unseen::before,
.seller-timeline-row.is-unseen::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--accent) 72%, var(--heading));
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 14%, transparent);
}

.seller-lead-row.is-unseen::before,
.seller-note-card.is-unseen::before,
.seller-task-card.is-unseen::before {
  justify-self: start;
}

.seller-row-submeta,
.seller-note-meta,
.seller-task-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--text-soft);
  font-size: .82rem;
  font-weight: 800;
}

.seller-mini-action,
.seller-task-edit,
.seller-note-edit,
.seller-mark-seen-action {
  border: 1px solid color-mix(in srgb, var(--accent) 34%, var(--border));
  border-radius: 999px;
  background: var(--surface-alt);
  color: var(--heading);
  cursor: pointer;
  font-size: .76rem;
  font-weight: 950;
  min-height: 30px;
  padding: 6px 10px;
  transition: transform .16s ease, border-color .16s ease, box-shadow .16s ease;
}

.seller-mini-action:hover,
.seller-mini-action:focus-visible,
.seller-task-edit:hover,
.seller-task-edit:focus-visible,
.seller-note-edit:hover,
.seller-note-edit:focus-visible,
.seller-mark-seen-action:hover,
.seller-mark-seen-action:focus-visible {
  transform: translateY(-1px);
  border-color: color-mix(in srgb, var(--accent) 64%, var(--border));
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 12%, transparent);
  outline: none;
}

.seller-note-card-head,
.seller-task-card-head,
.seller-detail-head,
.seller-customer-message-head,
.seller-property-activity-heading,
.seller-timeline-head {
  gap: 10px;
}

.seller-note-card-head,
.seller-customer-message-head,
.seller-property-activity-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
}

.seller-note-card.is-editing,
.seller-task-card.is-editing {
  border-color: color-mix(in srgb, var(--accent) 64%, var(--border));
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 12%, transparent);
}

.seller-customer-message {
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 14px;
  background: var(--surface);
  display: grid;
  gap: 10px;
}

.seller-customer-message p {
  margin: 0;
  white-space: pre-wrap;
}

@media (max-width: 760px) {
  .seller-heading-actions,
  .seller-card-actions,
  .seller-note-actions,
  .seller-lead-actions {
    width: 100%;
    justify-content: flex-start;
  }

  .seller-mini-action,
  .seller-task-edit,
  .seller-note-edit,
  .seller-mark-seen-action {
    width: 100%;
    justify-content: center;
  }

  .seller-activity-row {
    grid-template-columns: 1fr;
  }
}

.seller-lead-row.is-unseen,
.seller-note-card.is-unseen,
.seller-task-card.is-unseen,
.seller-activity-row.is-unseen,
.seller-timeline-row.is-unseen {
  border-left-width: 4px;
  border-left-color: color-mix(in srgb, var(--accent) 68%, var(--heading));
}

.seller-lead-row.is-unseen::before,
.seller-note-card.is-unseen::before,
.seller-task-card.is-unseen::before,
.seller-activity-row.is-unseen::before,
.seller-timeline-row.is-unseen::before {
  display: none;
}

/* v178 · Indicador universal de no visto estilo punto azul */
.seller-read-badge {
  display: none !important;
}

.seller-unread-dot {
  display: inline-flex;
  width: 10px;
  height: 10px;
  min-width: 10px;
  min-height: 10px;
  border-radius: 999px;
  background: #0A84FF;
  box-shadow: 0 0 0 4px color-mix(in srgb, #0A84FF 16%, transparent);
  vertical-align: middle;
  flex: 0 0 auto;
}

.seller-lead-row,
.seller-note-card,
.seller-task-card,
.seller-activity-row,
.seller-timeline-row,
.seller-detail-section,
.seller-customer-message {
  position: relative;
}

.seller-lead-row.is-unseen,
.seller-note-card.is-unseen,
.seller-task-card.is-unseen,
.seller-activity-row.is-unseen,
.seller-timeline-row.is-unseen,
.seller-detail-section.is-unseen,
.seller-customer-message.is-unseen {
  border-color: var(--border);
  border-left-width: 1px;
  border-left-color: var(--border);
  background: var(--surface);
}

.seller-lead-row.is-unseen {
  background: var(--surface-alt);
  padding-left: 32px;
}

.seller-note-card.is-unseen,
.seller-task-card.is-unseen,
.seller-activity-row.is-unseen,
.seller-detail-section.is-unseen,
.seller-customer-message.is-unseen {
  padding-left: 32px;
}

.seller-timeline-row.is-unseen {
  padding-left: 32px;
}

.seller-lead-row.is-unseen::before,
.seller-note-card.is-unseen::before,
.seller-task-card.is-unseen::before,
.seller-activity-row.is-unseen::before,
.seller-detail-section.is-unseen::before,
.seller-customer-message.is-unseen::before,
.seller-timeline-row.is-unseen::before {
  content: '';
  position: absolute;
  display: block;
  left: 14px;
  top: 22px;
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: #0A84FF;
  box-shadow: 0 0 0 4px color-mix(in srgb, #0A84FF 16%, transparent);
}

.seller-timeline-row.is-unseen::before {
  left: 12px;
  top: 19px;
}

.seller-timeline-row.is-unseen .seller-timeline-dot {
  background: #0A84FF;
  box-shadow: 0 0 0 4px color-mix(in srgb, #0A84FF 16%, transparent);
}

.seller-lead-row.is-unseen strong,
.seller-timeline-row.is-unseen .seller-timeline-head strong,
.seller-note-card.is-unseen strong,
.seller-task-card.is-unseen strong {
  font-weight: 950;
}

.seller-detail-head > .seller-unread-dot {
  margin-top: 2px;
}

.seller-heading-actions > .seller-unread-dot,
.seller-card-actions > .seller-unread-dot,
.seller-lead-actions > .seller-unread-dot {
  margin-inline: 2px;
}

@media (max-width: 560px) {
  .seller-lead-row.is-unseen,
  .seller-note-card.is-unseen,
  .seller-task-card.is-unseen,
  .seller-activity-row.is-unseen,
  .seller-detail-section.is-unseen,
  .seller-customer-message.is-unseen,
  .seller-timeline-row.is-unseen {
    padding-left: 30px;
  }
}

/* v183 · Estados CRM sutiles + bandeja Activos/Archivados */
.seller-archive-tabs {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  width: fit-content;
  margin-bottom: 14px;
  padding: 5px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface-alt);
}

.seller-archive-tab {
  border: 0;
  border-radius: 999px;
  min-height: 34px;
  padding: 7px 14px;
  background: transparent;
  color: var(--text-soft);
  cursor: pointer;
  font-size: .82rem;
  font-weight: 950;
  letter-spacing: .02em;
  transition: background .16s ease, color .16s ease, box-shadow .16s ease, transform .16s ease;
}

.seller-archive-tab:hover,
.seller-archive-tab:focus-visible {
  color: var(--heading);
  outline: none;
  transform: translateY(-1px);
}

.seller-archive-tab.is-active {
  color: var(--heading);
  background: var(--surface);
  box-shadow: var(--shadow-sm, 0 8px 22px rgba(15, 23, 42, .08));
}

.seller-filter-toolbar label.is-disabled {
  opacity: .58;
}

.seller-filter-toolbar label.is-disabled select {
  cursor: not-allowed;
}

.seller-status-badge-v183 {
  --status-color: var(--text-soft);
  --status-bg: color-mix(in srgb, var(--surface) 90%, var(--border));
  --status-border: color-mix(in srgb, var(--border) 92%, var(--text-soft));
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 27px;
  max-width: 100%;
  padding: 5px 11px;
  border: 1px solid var(--status-border);
  border-radius: 999px;
  background: var(--status-bg);
  color: var(--heading);
  font-size: .76rem;
  font-weight: 950;
  line-height: 1.1;
  white-space: nowrap;
  box-shadow: inset 0 1px 0 color-mix(in srgb, #fff 34%, transparent);
}

.seller-lead-row {
  --lead-status-color: transparent;
  --lead-status-bg: var(--surface-alt);
  --lead-status-border: var(--border);
  border-left-width: 4px;
  border-left-color: var(--lead-status-border);
  background:
    linear-gradient(90deg, var(--lead-status-bg), transparent 48%),
    var(--surface-alt);
}

.seller-detail-head,
.seller-property-snapshot {
  --lead-status-color: transparent;
  --lead-status-bg: transparent;
  --lead-status-border: var(--border);
}

.is-tone-attention {
  --lead-status-color: #0A84FF;
  --lead-status-bg: color-mix(in srgb, #0A84FF 7%, transparent);
  --lead-status-border: color-mix(in srgb, #0A84FF 56%, var(--border));
  --status-bg: color-mix(in srgb, #0A84FF 11%, var(--surface));
  --status-border: color-mix(in srgb, #0A84FF 28%, var(--border));
}

.is-tone-warning {
  --lead-status-color: #D97706;
  --lead-status-bg: color-mix(in srgb, #D97706 8%, transparent);
  --lead-status-border: color-mix(in srgb, #D97706 48%, var(--border));
  --status-bg: color-mix(in srgb, #D97706 12%, var(--surface));
  --status-border: color-mix(in srgb, #D97706 32%, var(--border));
}

.is-tone-info {
  --lead-status-color: #0284C7;
  --lead-status-bg: color-mix(in srgb, #0284C7 6%, transparent);
  --lead-status-border: color-mix(in srgb, #0284C7 38%, var(--border));
  --status-bg: color-mix(in srgb, #0284C7 10%, var(--surface));
  --status-border: color-mix(in srgb, #0284C7 26%, var(--border));
}

.is-tone-visit-request {
  --lead-status-color: #7C3AED;
  --lead-status-bg: color-mix(in srgb, #7C3AED 7%, transparent);
  --lead-status-border: color-mix(in srgb, #7C3AED 42%, var(--border));
  --status-bg: color-mix(in srgb, #7C3AED 10%, var(--surface));
  --status-border: color-mix(in srgb, #7C3AED 28%, var(--border));
}

.is-tone-visit {
  --lead-status-color: #4F46E5;
  --lead-status-bg: color-mix(in srgb, #4F46E5 12%, transparent);
  --lead-status-border: color-mix(in srgb, #4F46E5 68%, var(--border));
  --status-bg: color-mix(in srgb, #4F46E5 18%, var(--surface));
  --status-border: color-mix(in srgb, #4F46E5 52%, var(--border));
}

.seller-status-badge-v183.is-tone-visit {
  color: #3730A3;
  border-color: color-mix(in srgb, #4F46E5 58%, var(--border));
  background:
    linear-gradient(135deg,
      color-mix(in srgb, #4F46E5 20%, var(--surface)),
      color-mix(in srgb, #14B8A6 10%, var(--surface))
    );
  box-shadow:
    inset 0 1px 0 color-mix(in srgb, #fff 44%, transparent),
    0 0 0 1px color-mix(in srgb, #4F46E5 12%, transparent);
}

.seller-lead-row.is-tone-visit {
  border-left-width: 5px;
}

.is-tone-rescheduled {
  --lead-status-color: #CA8A04;
  --lead-status-bg: color-mix(in srgb, #CA8A04 8%, transparent);
  --lead-status-border: color-mix(in srgb, #CA8A04 38%, var(--border));
  --status-bg: color-mix(in srgb, #CA8A04 11%, var(--surface));
  --status-border: color-mix(in srgb, #CA8A04 28%, var(--border));
}

.is-tone-negotiating {
  --lead-status-color: #EA580C;
  --lead-status-bg: color-mix(in srgb, #EA580C 8%, transparent);
  --lead-status-border: color-mix(in srgb, #EA580C 48%, var(--border));
  --status-bg: color-mix(in srgb, #EA580C 12%, var(--surface));
  --status-border: color-mix(in srgb, #EA580C 32%, var(--border));
}

.is-tone-success {
  --lead-status-color: #16A34A;
  --lead-status-bg: color-mix(in srgb, #16A34A 7%, transparent);
  --lead-status-border: color-mix(in srgb, #16A34A 42%, var(--border));
  --status-bg: color-mix(in srgb, #16A34A 10%, var(--surface));
  --status-border: color-mix(in srgb, #16A34A 26%, var(--border));
}

.is-tone-cancelled {
  --lead-status-color: #B91C1C;
  --lead-status-bg: color-mix(in srgb, #B91C1C 5%, transparent);
  --lead-status-border: color-mix(in srgb, #B91C1C 28%, var(--border));
  --status-bg: color-mix(in srgb, #B91C1C 8%, var(--surface));
  --status-border: color-mix(in srgb, #B91C1C 20%, var(--border));
}

.is-tone-muted,
.is-tone-archived,
.is-tone-minimal,
.is-tone-neutral {
  --lead-status-color: var(--text-soft);
  --lead-status-bg: color-mix(in srgb, var(--border) 10%, transparent);
  --lead-status-border: color-mix(in srgb, var(--border) 100%, transparent);
  --status-bg: color-mix(in srgb, var(--surface) 88%, var(--border));
  --status-border: color-mix(in srgb, var(--border) 96%, var(--text-soft));
}

.seller-lead-row.is-tone-minimal,
.seller-lead-row.is-tone-archived {
  border-left-width: 1px;
  background: var(--surface-alt);
}

.seller-lead-row.is-tone-minimal.is-unseen,
.seller-lead-row.is-tone-archived.is-unseen {
  padding-left: 14px;
  background: var(--surface-alt);
}

.seller-lead-row.is-tone-minimal.is-unseen::before,
.seller-lead-row.is-tone-archived.is-unseen::before {
  display: none;
}

.seller-lead-row.is-archived {
  opacity: .84;
}

.seller-lead-row.is-tone-minimal .seller-status-badge-v183,
.seller-lead-row.is-tone-archived .seller-status-badge-v183 {
  color: var(--text-soft);
  box-shadow: none;
}

.seller-lead-row.is-unseen {
  border-left-width: 4px;
  border-left-color: var(--lead-status-border);
  background:
    linear-gradient(90deg, var(--lead-status-bg), transparent 48%),
    var(--surface-alt);
}

.seller-lead-row.is-tone-minimal.is-unseen,
.seller-lead-row.is-tone-archived.is-unseen {
  border-left-width: 1px;
  border-left-color: var(--border);
}

.seller-detail-head > .seller-status-badge-v183,
.seller-section-heading .seller-status-badge-v183 {
  width: fit-content;
}

@media (max-width: 680px) {
  .seller-archive-tabs {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .seller-archive-tab {
    width: 100%;
  }

  .seller-status-badge-v183 {
    white-space: normal;
    text-align: center;
  }
}


/* ===== v187 · Ajuste de lectura: punto azul independiente del estado ===== */
.seller-lead-row.is-unseen {
  padding-left: 34px;
  border-left-width: 4px;
  border-left-color: var(--lead-status-border);
  background:
    linear-gradient(90deg, var(--lead-status-bg), transparent 48%),
    var(--surface-alt);
}

.seller-lead-row.is-unseen::before {
  content: '';
  position: absolute;
  display: block;
  left: 14px;
  top: 22px;
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: #0A84FF;
  box-shadow: 0 0 0 4px color-mix(in srgb, #0A84FF 16%, transparent);
}

.seller-lead-row.is-tone-minimal.is-unseen,
.seller-lead-row.is-tone-archived.is-unseen {
  padding-left: 14px;
  border-left-width: 1px;
  border-left-color: var(--border);
  background: var(--surface-alt);
}

.seller-lead-row.is-tone-minimal.is-unseen::before,
.seller-lead-row.is-tone-archived.is-unseen::before {
  display: none;
}

.seller-activity-row.is-lead-fallback {
  cursor: pointer;
}

.seller-activity-row.is-lead-fallback:hover {
  border-color: color-mix(in srgb, var(--accent) 34%, var(--border));
  box-shadow: var(--shadow-sm);
}


/* ===== v239 · puente comprador-vendedor en Leads ===== */
.seller-buyer-bridge-v239 {
  border-color: color-mix(in srgb, var(--accent) 34%, var(--border));
  background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 8%, var(--surface-alt)), var(--surface-alt));
}
.seller-buyer-bridge-v239 p,
.seller-buyer-bridge-v239 small {
  color: var(--text-soft);
  line-height: 1.45;
}
.seller-bridge-actions-v239 {
  margin-top: 10px;
}


/* V243 - Hilo visible comprador-vendedor */
.seller-visible-thread-v243 { border-left: 4px solid rgba(44, 201, 181, .35); }
.seller-customer-thread-v243 { display: grid; gap: 10px; margin-top: 12px; }
.seller-thread-item-v243 { border: 1px solid rgba(148, 163, 184, .28); border-radius: 18px; padding: 12px 14px; background: rgba(15, 23, 42, .04); }
.seller-thread-item-v243.is-customer { margin-right: 32px; }
.seller-thread-item-v243.is-seller { margin-left: 32px; background: rgba(44, 201, 181, .09); }
.seller-thread-item-v243 div { display: flex; gap: 8px; justify-content: space-between; flex-wrap: wrap; align-items: baseline; }
.seller-thread-item-v243 strong { font-size: .95rem; }
.seller-thread-item-v243 small { color: var(--muted); font-size: .78rem; }
.seller-thread-item-v243 p { margin: 8px 0 0; line-height: 1.55; white-space: pre-wrap; }
.seller-thread-empty-v243 { border: 1px dashed rgba(148, 163, 184, .42); border-radius: 18px; padding: 14px; color: var(--muted); }
@media (max-width: 720px) { .seller-thread-item-v243.is-customer, .seller-thread-item-v243.is-seller { margin-left: 0; margin-right: 0; } }

/* V244 - Chat visible antes de notas internas */
.seller-chat-panel-v244 {
  border-color: color-mix(in srgb, var(--accent) 46%, var(--border));
  background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 7%, var(--surface-alt)), var(--surface-alt));
}
.seller-chat-reply-v244 {
  border-color: color-mix(in srgb, var(--accent) 38%, var(--border));
  background: color-mix(in srgb, var(--accent) 5%, var(--surface-alt));
}
.seller-chat-reply-v244 textarea {
  min-height: 120px;
}


/* V244.1 - chat visible e intuitivo en panel vendedor */
.seller-chat-workspace-v2441 {
  border: 1px solid rgba(20, 184, 166, 0.34);
  background: linear-gradient(135deg, rgba(20, 184, 166, 0.10), rgba(15, 23, 42, 0.02));
  box-shadow: 0 18px 46px rgba(15, 23, 42, 0.10);
}
.seller-chat-workspace-v2441.is-disabled {
  border-color: rgba(245, 158, 11, 0.35);
  background: rgba(245, 158, 11, 0.08);
}
.seller-chat-workspace-grid-v2441 {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.9fr);
  gap: 16px;
  align-items: start;
}
.seller-chat-thread-box-v2441,
.seller-chat-composer-box-v2441 {
  display: grid;
  gap: 10px;
}
.seller-chat-box-title-v2441 {
  font-size: 0.78rem;
  font-weight: 900;
  color: var(--seller-muted);
  text-transform: uppercase;
  letter-spacing: .08em;
}
.seller-chat-composer-box-v2441 textarea {
  min-height: 150px;
}
@media (max-width: 980px) {
  .seller-chat-workspace-grid-v2441 { grid-template-columns: 1fr; }
}


/* V244.2 - hardfix visibilidad del chat/respuesta */
.seller-chat-workspace-v2441 {
  position: relative;
  border: 2px solid rgba(20, 184, 166, 0.72) !important;
  background: linear-gradient(135deg, rgba(20, 184, 166, 0.18), rgba(59, 130, 246, 0.08)) !important;
  box-shadow: 0 22px 56px rgba(15, 23, 42, 0.18) !important;
  margin: 18px 0 22px !important;
}
.seller-chat-workspace-v2441::before {
  content: none;
  display: inline-flex;
  width: fit-content;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(20, 184, 166, 0.18);
  color: var(--seller-text, #0f172a);
  font-size: .72rem;
  font-weight: 900;
  letter-spacing: .08em;
  margin-bottom: 8px;
}
.seller-main-chat-textarea-v2442 {
  min-height: 180px !important;
  border: 2px solid rgba(20, 184, 166, 0.55) !important;
  background: rgba(255,255,255,.96) !important;
}
[data-theme="dark"] .seller-main-chat-textarea-v2442,
body.dark .seller-main-chat-textarea-v2442 {
  background: rgba(15, 23, 42, 0.94) !important;
}
.seller-chip.is-chat-entry-v2442 {
  border-color: rgba(20, 184, 166, .55) !important;
  background: rgba(20, 184, 166, .13) !important;
  font-weight: 900;
}
.seller-empty-chat-hint-v2442 strong { color: var(--seller-accent, #0f766e); }

/* V244.10 - Panel vendedor ordenado por módulos */
.seller-leads-page {
  grid-template-columns: minmax(0, 1fr) minmax(210px, 250px);
  align-items: start;
}
.seller-leads-hero {
  grid-column: 1 / -1;
}
.seller-workspace-menu {
  grid-column: 2;
  grid-row: 2 / span 6;
  position: sticky;
  top: 96px;
  z-index: 8;
  display: grid;
  gap: 14px;
  padding: 14px;
}
.seller-workspace-menu-head h2 {
  margin: 4px 0 0;
  font-size: 1.35rem;
}
.seller-workspace-nav {
  display: grid;
  gap: 8px;
}
.seller-workspace-nav-item {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--surface-alt);
  color: var(--text);
  padding: 10px 11px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  cursor: pointer;
  font-weight: 900;
  text-align: left;
}
.seller-workspace-nav-item:hover,
.seller-workspace-nav-item.is-active {
  border-color: color-mix(in srgb, var(--accent) 52%, var(--border));
  background: color-mix(in srgb, var(--accent) 10%, var(--surface-alt));
}
.seller-workspace-nav-item strong {
  min-width: 28px;
  min-height: 24px;
  border-radius: 999px;
  padding: 3px 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--heading);
  font-size: .78rem;
}
.seller-workspace-panel {
  grid-column: 1;
}
.seller-workspace-panel[hidden] {
  display: none !important;
}
.seller-focused-panel {
  display: grid;
  gap: 14px;
}
.seller-panel-list {
  display: grid;
  gap: 10px;
}
.seller-panel-row {
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 13px 14px;
  background: var(--surface-alt);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  cursor: pointer;
}
.seller-panel-row:hover {
  border-color: color-mix(in srgb, var(--accent) 44%, var(--border));
}
.seller-panel-row strong {
  color: var(--heading);
  display: block;
  margin-bottom: 4px;
}
.seller-panel-row span,
.seller-panel-row small {
  color: var(--text-soft);
  font-weight: 750;
}
.seller-panel-row.is-unread {
  border-color: color-mix(in srgb, var(--accent) 54%, var(--border));
  background: color-mix(in srgb, var(--accent) 8%, var(--surface-alt));
}
.seller-mini-pagination {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  margin-top: 4px;
}
.seller-property-activity-list {
  max-height: 520px;
  overflow: auto;
  padding-right: 2px;
}
.seller-chat-workspace-v2441::before {
  content: none !important;
  display: none !important;
}
.seller-chat-workspace-v2441 {
  border-radius: 24px !important;
  border: 1px solid color-mix(in srgb, var(--accent) 40%, var(--border)) !important;
  background: color-mix(in srgb, var(--accent) 6%, var(--surface-alt)) !important;
  box-shadow: var(--shadow-sm) !important;
}
.seller-chat-workspace-grid-v2441 {
  grid-template-columns: minmax(0, 1fr);
}
.seller-customer-thread-v243 {
  gap: 12px;
  max-height: 420px;
  overflow: auto;
  padding: 2px 4px 2px 2px;
}
.seller-thread-item-v243 {
  max-width: 82%;
  border-radius: 18px 18px 18px 6px;
  background: var(--surface) !important;
  box-shadow: none;
}
.seller-thread-item-v243.is-customer {
  justify-self: start;
  margin: 0 36px 0 0;
}
.seller-thread-item-v243.is-seller {
  justify-self: end;
  margin: 0 0 0 36px;
  border-radius: 18px 18px 6px 18px;
  background: color-mix(in srgb, var(--accent) 14%, var(--surface)) !important;
  border-color: color-mix(in srgb, var(--accent) 34%, var(--border));
}
.seller-chat-composer-box-v2441 {
  border-top: 1px solid var(--border);
  padding-top: 12px;
}
.seller-main-chat-textarea-v2442 {
  min-height: 118px !important;
}
@media (max-width: 1180px) {
  .seller-leads-page {
    grid-template-columns: 1fr;
  }
  .seller-workspace-menu,
  .seller-workspace-panel,
  .seller-leads-hero {
    grid-column: 1;
  }
  .seller-workspace-menu {
    grid-row: auto;
    position: static;
  }
  .seller-workspace-nav {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}
@media (max-width: 760px) {
  .seller-workspace-nav {
    grid-template-columns: 1fr 1fr;
  }
  .seller-panel-row {
    grid-template-columns: 1fr;
  }
  .seller-thread-item-v243 {
    max-width: 100%;
  }
}

/* V244.11 - menú izquierdo y acciones funcionales en historial */
.seller-leads-page {
  grid-template-columns: minmax(210px, 250px) minmax(0, 1fr);
  align-items: start;
}
.seller-workspace-menu {
  grid-column: 1;
  grid-row: 2 / span 6;
  position: sticky;
  top: 96px;
  z-index: 8;
}
.seller-workspace-panel {
  grid-column: 2;
}
.seller-workspace-nav-item {
  min-height: 44px;
}
.seller-activity-row.is-lead-fallback {
  cursor: pointer;
}
.seller-activity-tags {
  align-items: center;
}
.seller-activity-type {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: color-mix(in srgb, var(--surface-alt) 86%, transparent);
  color: var(--text-soft);
  padding: 5px 10px;
  font-size: .75rem;
  font-weight: 900;
}
.seller-activity-action {
  min-height: 30px;
  border: 1px solid color-mix(in srgb, var(--accent) 45%, var(--border));
  border-radius: 999px;
  background: color-mix(in srgb, var(--accent) 10%, var(--surface-alt));
  color: var(--heading);
  padding: 6px 12px;
  font-weight: 950;
  cursor: pointer;
}
.seller-activity-action:hover,
.seller-activity-action:focus-visible {
  border-color: color-mix(in srgb, var(--accent) 70%, var(--border));
  background: color-mix(in srgb, var(--accent) 18%, var(--surface-alt));
  outline: none;
}
@media (max-width: 1180px) {
  .seller-leads-page {
    grid-template-columns: 1fr;
  }
  .seller-workspace-menu,
  .seller-workspace-panel,
  .seller-leads-hero {
    grid-column: 1;
  }
  .seller-workspace-menu {
    grid-row: auto;
    position: static;
  }
}


/* V244.12: limpieza del detalle del vendedor. */
.seller-detail-head-clean {
  margin-bottom: 1rem;
}

.seller-contact-strip {
  margin-bottom: 1rem;
}

.seller-property-snapshot.is-compact-snapshot {
  margin-top: 1rem;
}

.seller-detail-grid-compact {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.seller-detail-grid-compact .seller-detail-item.is-wide {
  grid-column: 1 / -1;
}

.seller-collapsible-panel {
  margin-top: 1rem;
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 20px;
  background: rgba(15, 23, 42, 0.46);
  overflow: hidden;
}

.seller-collapsible-panel > summary {
  cursor: pointer;
  list-style: none;
  padding: 1rem 1.1rem;
  font-weight: 900;
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.seller-collapsible-panel > summary::-webkit-details-marker {
  display: none;
}

.seller-collapsible-panel > summary::after {
  content: '+';
  width: 28px;
  height: 28px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(148, 163, 184, 0.28);
  color: var(--muted);
}

.seller-collapsible-panel[open] > summary::after {
  content: '−';
}

.seller-collapsible-body {
  padding: 0 1.1rem 1.1rem;
}

.seller-collapsible-panel .seller-inline-row {
  margin-bottom: .9rem;
}

@media (max-width: 760px) {
  .seller-detail-grid-compact {
    grid-template-columns: 1fr;
  }
}

/* V244.13 - Menú izquierdo con Actividad por defecto y módulos de gestión separados */
.seller-leads-page {
  grid-template-columns: minmax(220px, 260px) minmax(0, 1fr) !important;
  align-items: start;
}
.seller-workspace-menu {
  grid-column: 1 !important;
  grid-row: 2 / span 8;
  position: sticky;
  top: 96px;
}
.seller-workspace-panel {
  grid-column: 2 !important;
}
.seller-workspace-nav {
  gap: 9px;
}
.seller-workspace-nav-item strong,
.seller-result-count[data-panel-count] {
  font-variant-numeric: tabular-nums;
}
.seller-selected-lead-panel .seller-section-heading {
  align-items: center;
}
.seller-action-panel-card {
  display: grid;
  gap: 14px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 20px;
  background: rgba(15, 23, 42, 0.34);
  padding: 18px;
}
.seller-selected-lead-summary {
  display: grid;
  gap: 4px;
  padding: 12px 14px;
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 16px;
  background: rgba(15, 23, 42, 0.34);
}
.seller-selected-lead-summary strong {
  color: var(--heading);
  font-weight: 900;
}
.seller-selected-lead-summary span {
  color: var(--muted);
  font-weight: 800;
}
.seller-action-panel-card label {
  display: grid;
  gap: 8px;
}
.seller-action-panel-card select,
.seller-action-panel-card input,
.seller-action-panel-card textarea {
  width: 100%;
}
.seller-action-panel-card .seller-notes-list,
.seller-action-panel-card .seller-tasks-list {
  margin-top: 4px;
}
.seller-detail-head-clean {
  margin-bottom: 14px;
}
.seller-property-snapshot.is-compact-snapshot {
  margin-top: 16px;
}
@media (max-width: 1180px) {
  .seller-leads-page {
    grid-template-columns: 1fr !important;
  }
  .seller-workspace-menu,
  .seller-workspace-panel,
  .seller-leads-hero {
    grid-column: 1 !important;
  }
  .seller-workspace-menu {
    grid-row: auto;
    position: static;
  }
  .seller-workspace-nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 760px) {
  .seller-workspace-nav {
    grid-template-columns: 1fr;
  }
  .seller-action-panel-card {
    padding: 14px;
  }
}

/* V244.14 - Visitas accionables y contraste en modo oscuro */
.seller-status-badge-v183.is-tone-visit,
.seller-status-badge-v183.is-tone-visit-request,
.seller-visit-status.is-scheduled,
.seller-visit-status.is-requested {
  color: #F8FAFC !important;
  text-shadow: 0 1px 1px rgba(0, 0, 0, .42);
}

.seller-status-badge-v183.is-tone-visit {
  background: linear-gradient(135deg, rgba(79, 70, 229, .92), rgba(20, 184, 166, .44)) !important;
  border-color: rgba(165, 180, 252, .78) !important;
  box-shadow: 0 0 0 1px rgba(165, 180, 252, .18), 0 10px 24px rgba(15, 23, 42, .2) !important;
}

.seller-status-badge-v183.is-tone-visit-request {
  background: rgba(109, 40, 217, .82) !important;
  border-color: rgba(196, 181, 253, .72) !important;
}

.seller-panel-helper {
  margin: -6px 0 10px;
  color: var(--text-soft);
  font-size: .94rem;
  font-weight: 700;
}

.seller-visit-row {
  border: 1px solid var(--border);
  border-radius: 20px;
  background: var(--surface-alt);
  padding: 14px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  cursor: pointer;
}

.seller-visit-row:hover,
.seller-visit-row:focus-within {
  border-color: color-mix(in srgb, var(--accent) 48%, var(--border));
  background: color-mix(in srgb, var(--accent) 7%, var(--surface-alt));
}

.seller-visit-row.is-unread {
  border-color: color-mix(in srgb, #0A84FF 48%, var(--border));
}

.seller-visit-main {
  min-width: 0;
  display: grid;
  gap: 6px;
}

.seller-visit-titleline {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.seller-visit-titleline strong {
  color: var(--heading);
  font-size: 1rem;
}

.seller-visit-property,
.seller-visit-meta {
  color: var(--text-soft);
  font-weight: 750;
}

.seller-visit-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  font-size: .88rem;
}

.seller-visit-status {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  border-radius: 999px;
  border: 1px solid var(--border);
  padding: 4px 10px;
  font-size: .74rem;
  font-weight: 950;
  letter-spacing: .01em;
}

.seller-visit-status.is-requested {
  background: rgba(37, 99, 235, .75);
  border-color: rgba(147, 197, 253, .64);
}

.seller-visit-status.is-scheduled {
  background: rgba(79, 70, 229, .82);
  border-color: rgba(196, 181, 253, .7);
}

.seller-visit-status.is-cancelled {
  color: #FEE2E2;
  background: rgba(185, 28, 28, .78);
  border-color: rgba(254, 202, 202, .58);
}

.seller-visit-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 8px;
}

.seller-visit-action,
.seller-visit-secondary {
  border-radius: 999px;
  min-height: 34px;
  padding: 7px 13px;
  font-weight: 950;
  cursor: pointer;
}

.seller-visit-action {
  border: 1px solid color-mix(in srgb, var(--accent) 62%, var(--border));
  background: color-mix(in srgb, var(--accent) 22%, var(--surface));
  color: var(--heading);
}

.seller-visit-secondary {
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
}

.seller-visit-action:hover,
.seller-visit-secondary:hover,
.seller-visit-action:focus-visible,
.seller-visit-secondary:focus-visible {
  outline: none;
  transform: translateY(-1px);
  border-color: color-mix(in srgb, var(--accent) 78%, var(--border));
}

@media (max-width: 760px) {
  .seller-visit-row {
    grid-template-columns: 1fr;
  }
  .seller-visit-actions {
    justify-content: flex-start;
  }
}


/* ===== v244.16 Ajustes de visitas, contraste y WhatsApp ===== */
.seller-form-helper.is-warning,
.seller-form-feedback.is-error,
.seller-visit-scheduler-card .seller-form-feedback.is-error {
  color: #ffd9b0;
  background: rgba(255, 149, 60, 0.14);
  border: 1px solid rgba(255, 190, 120, 0.48);
  border-radius: 14px;
  padding: 10px 12px;
  font-weight: 800;
}

.seller-visit-scheduler-card {
  border: 1px solid rgba(255, 188, 112, 0.42);
  background: linear-gradient(135deg, rgba(255, 188, 112, 0.09), rgba(0, 203, 190, 0.06));
  border-radius: 22px;
  padding: 18px;
  margin-bottom: 14px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.22);
}

.seller-visit-current-detail {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  border: 1px solid rgba(148, 163, 184, 0.28);
  border-radius: 16px;
  padding: 12px 14px;
  margin: 12px 0;
  background: rgba(15, 23, 42, 0.38);
}

.seller-visit-current-detail strong,
.seller-visit-current-detail span {
  color: #f8fafc;
}

.seller-visit-schedule-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 12px 0;
}

.seller-visit-schedule-grid label span {
  display: block;
  color: #f0b56b;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 900;
  margin-bottom: 6px;
}

.seller-visit-schedule-grid input {
  width: 100%;
  border: 1px solid rgba(148, 163, 184, 0.30);
  background: rgba(2, 6, 23, 0.58);
  color: #f8fafc;
  border-radius: 14px;
  min-height: 44px;
  padding: 10px 12px;
  color-scheme: dark;
}

.seller-visit-schedule-grid input:focus {
  outline: none;
  border-color: rgba(0, 203, 190, 0.78);
  box-shadow: 0 0 0 3px rgba(0, 203, 190, 0.16);
}

.seller-visit-status.is-scheduled,
.seller-status-badge-v183.is-tone-visit {
  color: #fff7ed;
  background: rgba(124, 58, 237, 0.45);
  border-color: rgba(216, 180, 254, 0.75);
}

.seller-visit-status.is-requested,
.seller-status-badge-v183.is-tone-visit-request {
  color: #ecfeff;
  background: rgba(8, 145, 178, 0.34);
  border-color: rgba(103, 232, 249, 0.62);
}

@media (max-width: 760px) {
  .seller-visit-schedule-grid {
    grid-template-columns: 1fr;
  }
}

/* V244.17 - Chat agrupado por comprador + inmueble y WhatsApp contextual */
.seller-chip.is-grouped-chat {
  color: var(--heading);
  border-color: color-mix(in srgb, var(--accent) 42%, var(--border));
  background: color-mix(in srgb, var(--accent) 12%, var(--surface));
}

.seller-chip.is-visit-context {
  color: #F8FAFC;
  border-color: rgba(147, 197, 253, .62);
  background: rgba(37, 99, 235, .78);
}

.seller-chip.is-whatsapp-ready {
  color: #ECFDF5;
  border-color: rgba(134, 239, 172, .72);
  background: rgba(22, 163, 74, .68);
}

.seller-chat-bubbles-v24417 .seller-thread-item-v243.is-event {
  border-style: dashed;
  background: color-mix(in srgb, var(--surface) 78%, var(--accent) 7%);
}

.seller-chat-bubbles-v24417 .seller-thread-item-v243.is-event.is-visit {
  border-color: rgba(147, 197, 253, .52);
  background: color-mix(in srgb, #2563EB 13%, var(--surface-alt));
}

.seller-chat-bubbles-v24417 .seller-thread-item-v243.is-event.is-info {
  border-color: color-mix(in srgb, var(--accent) 38%, var(--border));
}

.seller-chat-action-row-v24417 {
  gap: 10px;
  flex-wrap: wrap;
}

.seller-whatsapp-continue-v24417 {
  border-color: rgba(34, 197, 94, .68) !important;
  background: linear-gradient(135deg, rgba(34, 197, 94, .92), rgba(21, 128, 61, .86)) !important;
  color: #FFFFFF !important;
  box-shadow: 0 12px 28px rgba(22, 163, 74, .22);
}

.seller-whatsapp-continue-v24417::before {
  content: "";
  width: 16px;
  height: 16px;
  display: inline-block;
  margin-right: 7px;
  vertical-align: -3px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #FFFFFF 0 18%, transparent 20%), #22C55E;
  box-shadow: inset 0 0 0 2px rgba(255,255,255,.72);
}

.seller-chat-workspace-v2441::before {
  content: none !important;
  display: none !important;
}

/* V244.22 - Selector visible de comprador + inmueble para módulos de trabajo */
.seller-context-selector-card {
  border: 1px solid color-mix(in srgb, var(--accent) 34%, var(--border));
  border-radius: 20px;
  padding: 16px;
  margin-bottom: 16px;
  background: linear-gradient(145deg, color-mix(in srgb, var(--surface) 92%, var(--accent) 8%), var(--surface-alt));
  box-shadow: 0 18px 42px rgba(0,0,0,.16);
}

.seller-context-selector-card.is-empty {
  display: grid;
  gap: 6px;
  color: var(--muted);
}

.seller-context-selector-head,
.seller-context-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.seller-context-selector-head h3 {
  margin: 2px 0 0;
  font-size: 1.25rem;
  color: var(--heading);
}

.seller-context-module {
  border: 1px solid color-mix(in srgb, var(--accent) 38%, var(--border));
  color: var(--heading);
  border-radius: 999px;
  padding: 7px 11px;
  font-size: .78rem;
  font-weight: 800;
  background: color-mix(in srgb, var(--surface) 72%, var(--accent) 10%);
}

.seller-context-active {
  display: grid;
  gap: 3px;
  margin: 12px 0;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: color-mix(in srgb, var(--surface-alt) 90%, #000 10%);
}

.seller-context-active strong {
  color: var(--heading);
  font-size: 1rem;
}

.seller-context-active span {
  color: var(--muted);
  font-size: .9rem;
  line-height: 1.35;
}

.seller-context-select-label {
  display: grid;
  gap: 8px;
  margin: 0 0 12px;
}

.seller-context-select-label > span {
  color: var(--muted);
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  font-weight: 900;
}

.seller-context-select-label select {
  width: 100%;
  min-height: 46px;
  border-radius: 14px;
  border: 1px solid color-mix(in srgb, var(--accent) 34%, var(--border));
  background: color-mix(in srgb, var(--surface) 88%, #000 12%);
  color: var(--heading);
  padding: 0 14px;
  font-weight: 800;
}


/* V244.23 - Selector profesional de contexto con buscador y filtros */
.seller-context-search-grid {
  display: grid;
  grid-template-columns: minmax(220px, 1.7fr) repeat(3, minmax(150px, 1fr));
  gap: 10px;
  margin-top: 14px;
}
.seller-context-search-grid label {
  display: grid;
  gap: 6px;
  color: var(--muted, #9aa7b7);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.04em;
}
.seller-context-search-grid input,
.seller-context-search-grid select {
  width: 100%;
  border: 1px solid rgba(148, 163, 184, 0.26);
  border-radius: 14px;
  background: rgba(15, 23, 42, 0.72);
  color: var(--text, #f8fafc);
  padding: 10px 12px;
  outline: none;
}
.seller-context-search-grid input:focus,
.seller-context-search-grid select:focus {
  border-color: rgba(45, 212, 191, 0.65);
  box-shadow: 0 0 0 3px rgba(45, 212, 191, 0.12);
}
.seller-context-results-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
  color: var(--text, #f8fafc);
}
.seller-context-clear {
  border: 1px solid rgba(148, 163, 184, 0.24);
  background: rgba(15, 23, 42, 0.44);
  color: var(--muted, #aab6c7);
  border-radius: 999px;
  padding: 7px 11px;
  font-weight: 800;
  cursor: pointer;
}
.seller-context-clear:hover {
  color: var(--text, #f8fafc);
  border-color: rgba(45, 212, 191, 0.45);
}
.seller-context-results {
  display: grid;
  gap: 8px;
  max-height: min(48vh, 520px);
  overflow: auto;
  margin-top: 10px;
  padding-right: 4px;
}
.seller-context-result {
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  text-align: left;
  border: 1px solid rgba(148, 163, 184, 0.18);
  background: rgba(15, 23, 42, 0.50);
  color: var(--text, #f8fafc);
  border-radius: 16px;
  padding: 11px 12px;
  cursor: pointer;
}
.seller-context-result:hover,
.seller-context-result.is-selected {
  border-color: rgba(45, 212, 191, 0.65);
  background: rgba(13, 148, 136, 0.12);
}
.seller-context-result strong,
.seller-context-result small {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.seller-context-result small {
  margin-top: 3px;
  color: var(--muted, #aab6c7);
  font-weight: 700;
}
.seller-context-result-meta {
  display: grid;
  justify-items: end;
  gap: 4px;
  color: var(--muted, #aab6c7);
  font-size: 0.74rem;
  font-weight: 800;
}
.seller-context-result-meta em {
  font-style: normal;
}
.seller-context-result-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 4px;
}
.seller-context-result-badges span {
  border: 1px solid rgba(148, 163, 184, 0.20);
  border-radius: 999px;
  padding: 3px 7px;
  color: var(--muted, #aab6c7);
  background: rgba(15, 23, 42, 0.45);
}
.seller-context-no-results {
  border: 1px dashed rgba(148, 163, 184, 0.25);
  color: var(--muted, #aab6c7);
  border-radius: 16px;
  padding: 14px;
}
@media (max-width: 900px) {
  .seller-context-search-grid {
    grid-template-columns: 1fr;
  }
  .seller-context-result {
    grid-template-columns: 1fr;
  }
  .seller-context-result-meta {
    justify-items: start;
  }
  .seller-context-result-badges {
    justify-content: flex-start;
  }
}

/* V244.24 - Pantallas separadas para acciones internas despues de seleccionar contexto */
.seller-workspace-detail-screen {
  display: grid;
  gap: 16px;
}
.seller-workspace-detail-header {
  display: grid;
  gap: 12px;
  border: 1px solid color-mix(in srgb, var(--accent) 34%, var(--border));
  border-radius: 22px;
  padding: 18px;
  background: linear-gradient(145deg, color-mix(in srgb, var(--surface) 92%, var(--accent) 8%), var(--surface-alt));
}
.seller-workspace-detail-title h3 {
  margin: 2px 0 4px;
  color: var(--heading);
  font-size: clamp(1.18rem, 2.2vw, 1.6rem);
}
.seller-workspace-detail-title p,
.seller-workspace-detail-description {
  margin: 0;
  color: var(--muted);
  font-weight: 800;
  line-height: 1.4;
}
.seller-workspace-detail-meta,
.seller-workspace-detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.seller-workspace-detail-meta span {
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 999px;
  padding: 6px 10px;
  color: var(--text);
  background: rgba(15, 23, 42, 0.42);
  font-weight: 800;
  font-size: 0.82rem;
}
.seller-action-panel-head,
.seller-history-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.seller-action-panel-head h3,
.seller-history-head h3 {
  margin: 2px 0 0;
  color: var(--heading);
}
.seller-history-head > span {
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 999px;
  padding: 7px 11px;
  color: var(--muted);
  background: rgba(15, 23, 42, 0.36);
  font-weight: 900;
  font-size: 0.78rem;
}
.seller-history-section {
  display: grid;
  gap: 12px;
  border: 1px solid rgba(148, 163, 184, 0.20);
  border-radius: 20px;
  padding: 16px;
  background: rgba(15, 23, 42, 0.28);
}
.seller-history-list {
  display: grid;
  gap: 9px;
}
.seller-history-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: start;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 16px;
  padding: 12px;
  background: rgba(15, 23, 42, 0.42);
}
.seller-history-row strong,
.seller-history-row span,
.seller-history-row time {
  display: block;
}
.seller-history-row strong {
  color: var(--heading);
  font-weight: 900;
}
.seller-history-row span,
.seller-history-row time {
  color: var(--muted);
  font-weight: 800;
  font-size: 0.82rem;
}
.seller-history-row p {
  margin: 6px 0 0;
  color: var(--text);
  line-height: 1.45;
}
.seller-history-empty {
  border: 1px dashed rgba(148, 163, 184, 0.25);
  border-radius: 16px;
  padding: 14px;
  color: var(--muted);
  background: rgba(15, 23, 42, 0.24);
  font-weight: 800;
}
@media (max-width: 720px) {
  .seller-history-row {
    grid-template-columns: 1fr;
  }
  .seller-workspace-detail-actions .btn {
    width: 100%;
  }
}


/* V244.25 - Acciones rapidas visibles del contexto seleccionado */
.seller-workspace-detail-actions,
.seller-context-actions {
  position: relative;
  width: 100%;
  margin-top: 4px;
  padding: 14px 14px 12px;
  border: 1px solid color-mix(in srgb, var(--accent) 42%, var(--border));
  border-radius: 18px;
  background:
    radial-gradient(circle at top left, color-mix(in srgb, var(--accent) 18%, transparent), transparent 38%),
    color-mix(in srgb, var(--surface-alt) 88%, var(--accent) 6%);
  box-shadow: 0 18px 42px rgba(0,0,0,.20), inset 0 1px 0 rgba(255,255,255,.04);
}

.seller-workspace-actions-label {
  flex-basis: 100%;
  color: var(--accent);
  font-size: .72rem;
  font-weight: 950;
  text-transform: uppercase;
  letter-spacing: .14em;
  margin-bottom: 2px;
}

.seller-quick-action {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 999px !important;
  padding: 10px 16px !important;
  font-weight: 950 !important;
  line-height: 1 !important;
  letter-spacing: .01em;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease, background .18s ease;
}

.seller-quick-action:hover,
.seller-quick-action:focus-visible {
  transform: translateY(-1px);
  outline: none;
}

.seller-quick-action-primary {
  border: 1px solid color-mix(in srgb, var(--accent) 70%, #ffffff 12%) !important;
  background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 82%, #ffffff 8%), color-mix(in srgb, var(--accent) 58%, #0f172a 30%)) !important;
  color: #ffffff !important;
  box-shadow: 0 14px 30px color-mix(in srgb, var(--accent) 28%, transparent) !important;
}

.seller-quick-action-primary:hover,
.seller-quick-action-primary:focus-visible {
  border-color: color-mix(in srgb, var(--accent) 86%, #ffffff 16%) !important;
  box-shadow: 0 18px 38px color-mix(in srgb, var(--accent) 34%, transparent) !important;
}

.seller-quick-action-secondary {
  border: 1px solid rgba(226, 232, 240, .30) !important;
  background: rgba(15, 23, 42, .74) !important;
  color: var(--text, #f8fafc) !important;
  box-shadow: 0 10px 24px rgba(0,0,0,.16) !important;
}

.seller-quick-action-secondary:hover,
.seller-quick-action-secondary:focus-visible {
  border-color: color-mix(in srgb, var(--accent) 55%, rgba(226, 232, 240, .30)) !important;
  background: color-mix(in srgb, var(--surface) 76%, var(--accent) 12%) !important;
}

.seller-context-actions:empty {
  display: none;
}

@media (max-width: 640px) {
  .seller-workspace-detail-actions,
  .seller-context-actions {
    display: grid;
    grid-template-columns: 1fr;
  }
  .seller-quick-action {
    width: 100%;
  }
}


/* V245.2 - Hardfix de legibilidad real en modo claro/oscuro para formularios y tarjetas del panel vendedor */
.seller-leads-page {
  --seller-soft-card-bg: color-mix(in srgb, var(--surface) 94%, var(--surface-alt));
  --seller-soft-card-bg-strong: color-mix(in srgb, var(--surface-alt) 90%, var(--surface));
  --seller-soft-chip-bg: color-mix(in srgb, var(--surface-alt) 90%, var(--bg));
  --seller-soft-border: color-mix(in srgb, var(--border) 88%, var(--accent) 12%);
  --seller-control-bg: var(--surface);
  --seller-control-bg-elevated: color-mix(in srgb, var(--surface) 92%, var(--surface-alt));
  --seller-control-border: color-mix(in srgb, var(--border) 82%, var(--accent) 18%);
  --seller-control-text: var(--text);
  --seller-control-heading: var(--heading);
  --seller-control-placeholder: color-mix(in srgb, var(--text-soft) 90%, transparent);
  --seller-control-shadow: 0 1px 0 rgba(255,255,255,.42) inset;
}

:root[data-theme="dark"] .seller-leads-page,
body.dark .seller-leads-page {
  --seller-soft-card-bg: color-mix(in srgb, var(--surface) 88%, #0b1118 12%);
  --seller-soft-card-bg-strong: color-mix(in srgb, var(--surface-alt) 84%, #0a1017 16%);
  --seller-soft-chip-bg: color-mix(in srgb, var(--surface-alt) 80%, #0b1118 20%);
  --seller-soft-border: color-mix(in srgb, var(--border) 88%, var(--accent) 12%);
  --seller-control-bg: color-mix(in srgb, var(--surface) 94%, #0a1017 6%);
  --seller-control-bg-elevated: color-mix(in srgb, var(--surface-alt) 88%, #0a1017 12%);
  --seller-control-border: color-mix(in srgb, var(--border) 82%, var(--accent) 18%);
  --seller-control-text: var(--text);
  --seller-control-heading: var(--heading);
  --seller-control-placeholder: color-mix(in srgb, var(--text-soft) 92%, transparent);
  --seller-control-shadow: 0 1px 0 rgba(255,255,255,.03) inset;
}

.seller-action-panel-card,
.seller-selected-lead-summary,
.seller-context-selector-card,
.seller-history-section,
.seller-history-row,
.seller-history-empty,
.seller-context-no-results,
.seller-visit-current-detail,
.seller-workspace-detail-meta span,
.seller-history-head > span,
.seller-context-result-badges span,
.seller-quick-action-secondary {
  background: var(--seller-soft-card-bg) !important;
  border-color: var(--seller-soft-border) !important;
  color: var(--seller-control-text) !important;
}

.seller-workspace-detail-actions,
.seller-context-actions {
  background:
    radial-gradient(circle at top left, color-mix(in srgb, var(--accent) 10%, transparent), transparent 42%),
    var(--seller-soft-card-bg-strong) !important;
  border-color: color-mix(in srgb, var(--accent) 42%, var(--seller-soft-border)) !important;
  box-shadow: 0 18px 42px rgba(0,0,0,.10), inset 0 1px 0 rgba(255,255,255,.04);
}

.seller-visit-current-detail strong,
.seller-visit-current-detail span,
.seller-selected-lead-summary strong,
.seller-selected-lead-summary span,
.seller-history-row strong,
.seller-history-row span,
.seller-history-row time,
.seller-history-empty,
.seller-context-no-results,
.seller-context-result-badges span,
.seller-workspace-detail-meta span,
.seller-history-head > span {
  color: inherit !important;
}

.seller-visit-schedule-grid label span {
  color: var(--accent-strong) !important;
}

.seller-inline-form select,
.seller-inline-form input,
.seller-inline-form textarea,
.seller-action-panel-card select,
.seller-action-panel-card input,
.seller-action-panel-card textarea,
.seller-status-panel textarea,
.seller-note-panel textarea,
.seller-customer-reply textarea,
.seller-followup-planner textarea,
.seller-picker-control input[data-followup-date-display],
.seller-picker-control input[data-followup-time-display],
.seller-date-display-input[readonly],
.seller-time-display-input[readonly],
.seller-visit-schedule-grid input,
.seller-filter-grid input,
.seller-filter-grid select,
.seller-filter-toolbar input,
.seller-filter-toolbar select,
.seller-context-select-label select,
.seller-context-search-grid input,
.seller-context-search-grid select {
  background: var(--seller-control-bg) !important;
  color: var(--seller-control-text) !important;
  border: 1px solid var(--seller-control-border) !important;
  box-shadow: var(--seller-control-shadow) !important;
  color-scheme: light;
}

:root[data-theme="dark"] .seller-inline-form select,
:root[data-theme="dark"] .seller-inline-form input,
:root[data-theme="dark"] .seller-inline-form textarea,
:root[data-theme="dark"] .seller-action-panel-card select,
:root[data-theme="dark"] .seller-action-panel-card input,
:root[data-theme="dark"] .seller-action-panel-card textarea,
:root[data-theme="dark"] .seller-status-panel textarea,
:root[data-theme="dark"] .seller-note-panel textarea,
:root[data-theme="dark"] .seller-customer-reply textarea,
:root[data-theme="dark"] .seller-followup-planner textarea,
:root[data-theme="dark"] .seller-picker-control input[data-followup-date-display],
:root[data-theme="dark"] .seller-picker-control input[data-followup-time-display],
:root[data-theme="dark"] .seller-date-display-input[readonly],
:root[data-theme="dark"] .seller-time-display-input[readonly],
:root[data-theme="dark"] .seller-visit-schedule-grid input,
:root[data-theme="dark"] .seller-filter-grid input,
:root[data-theme="dark"] .seller-filter-grid select,
:root[data-theme="dark"] .seller-filter-toolbar input,
:root[data-theme="dark"] .seller-filter-toolbar select,
:root[data-theme="dark"] .seller-context-select-label select,
:root[data-theme="dark"] .seller-context-search-grid input,
:root[data-theme="dark"] .seller-context-search-grid select,
body.dark .seller-inline-form select,
body.dark .seller-inline-form input,
body.dark .seller-inline-form textarea,
body.dark .seller-action-panel-card select,
body.dark .seller-action-panel-card input,
body.dark .seller-action-panel-card textarea,
body.dark .seller-status-panel textarea,
body.dark .seller-note-panel textarea,
body.dark .seller-customer-reply textarea,
body.dark .seller-followup-planner textarea,
body.dark .seller-picker-control input[data-followup-date-display],
body.dark .seller-picker-control input[data-followup-time-display],
body.dark .seller-date-display-input[readonly],
body.dark .seller-time-display-input[readonly],
body.dark .seller-visit-schedule-grid input,
body.dark .seller-filter-grid input,
body.dark .seller-filter-grid select,
body.dark .seller-filter-toolbar input,
body.dark .seller-filter-toolbar select,
body.dark .seller-context-select-label select,
body.dark .seller-context-search-grid input,
body.dark .seller-context-search-grid select {
  color-scheme: dark;
}

.seller-inline-form textarea,
.seller-action-panel-card textarea,
.seller-status-panel textarea,
.seller-note-panel textarea,
.seller-customer-reply textarea,
.seller-followup-planner textarea {
  padding: 12px 14px !important;
  resize: vertical;
}

.seller-inline-form select,
.seller-inline-form input,
.seller-action-panel-card select,
.seller-action-panel-card input,
.seller-picker-control input[data-followup-date-display],
.seller-picker-control input[data-followup-time-display],
.seller-visit-schedule-grid input,
.seller-context-select-label select,
.seller-context-search-grid input,
.seller-context-search-grid select {
  min-height: 44px;
  padding: 0 14px !important;
}

.seller-inline-form select:focus,
.seller-inline-form input:focus,
.seller-inline-form textarea:focus,
.seller-action-panel-card select:focus,
.seller-action-panel-card input:focus,
.seller-action-panel-card textarea:focus,
.seller-status-panel textarea:focus,
.seller-note-panel textarea:focus,
.seller-customer-reply textarea:focus,
.seller-followup-planner textarea:focus,
.seller-picker-control input[data-followup-date-display]:focus,
.seller-picker-control input[data-followup-time-display]:focus,
.seller-visit-schedule-grid input:focus,
.seller-context-select-label select:focus,
.seller-context-search-grid input:focus,
.seller-context-search-grid select:focus {
  outline: none !important;
  border-color: color-mix(in srgb, var(--accent) 62%, var(--seller-control-border)) !important;
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 18%, transparent) !important;
}

.seller-inline-form input::placeholder,
.seller-inline-form textarea::placeholder,
.seller-action-panel-card input::placeholder,
.seller-action-panel-card textarea::placeholder,
.seller-status-panel textarea::placeholder,
.seller-note-panel textarea::placeholder,
.seller-customer-reply textarea::placeholder,
.seller-followup-planner textarea::placeholder,
.seller-context-search-grid input::placeholder,
.seller-filter-grid input::placeholder,
.seller-filter-toolbar input::placeholder {
  color: var(--seller-control-placeholder) !important;
  opacity: 1;
}

.seller-inline-form label > span,
.seller-action-panel-card label > span,
.seller-field-label,
.seller-planner-grid label > span,
.seller-context-select-label > span {
  color: var(--text-soft) !important;
}

.seller-quick-action-secondary:hover,
.seller-quick-action-secondary:focus-visible {
  background: color-mix(in srgb, var(--seller-soft-card-bg) 82%, var(--accent) 10%) !important;
}

/* V246.1 - Claridad de flujo vendedor/comprador: canal visible vs acciones internas */
.seller-action-scope-banner {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  border: 1px solid color-mix(in srgb, var(--accent) 28%, var(--border));
  border-radius: 18px;
  padding: 12px 14px;
  background:
    radial-gradient(circle at top left, color-mix(in srgb, var(--accent) 10%, transparent), transparent 42%),
    color-mix(in srgb, var(--surface-alt) 86%, var(--surface));
  color: var(--text);
}

.seller-action-scope-banner .seller-action-scope-icon {
  width: 38px;
  height: 38px;
  display: inline-grid;
  place-items: center;
  border-radius: 14px;
  background: color-mix(in srgb, var(--accent) 16%, var(--surface));
  border: 1px solid color-mix(in srgb, var(--accent) 26%, var(--border));
  font-size: 1.05rem;
}

.seller-action-scope-banner strong,
.seller-action-scope-banner em,
.seller-action-scope-banner b {
  display: block;
}

.seller-action-scope-banner strong {
  color: var(--heading);
  font-size: .96rem;
  font-weight: 950;
  line-height: 1.25;
}

.seller-action-scope-banner em {
  margin-top: 2px;
  color: var(--text-soft);
  font-style: normal;
  font-weight: 750;
  line-height: 1.4;
  font-size: .88rem;
}

.seller-action-scope-banner b {
  justify-self: end;
  border: 1px solid color-mix(in srgb, var(--accent) 34%, var(--border));
  border-radius: 999px;
  padding: 6px 9px;
  color: var(--accent-strong);
  background: color-mix(in srgb, var(--accent-soft) 82%, var(--surface));
  font-size: .72rem;
  font-weight: 950;
  text-transform: uppercase;
  letter-spacing: .08em;
  white-space: nowrap;
}

.seller-action-scope-banner.is-chat {
  border-color: color-mix(in srgb, var(--success) 38%, var(--border));
  background:
    radial-gradient(circle at top left, color-mix(in srgb, var(--success) 12%, transparent), transparent 42%),
    color-mix(in srgb, var(--surface-alt) 88%, var(--surface));
}

.seller-action-scope-banner.is-chat b {
  color: var(--success);
  border-color: color-mix(in srgb, var(--success) 38%, var(--border));
  background: color-mix(in srgb, var(--success) 10%, var(--surface));
}

.seller-action-scope-banner.is-notes,
.seller-action-scope-banner.is-status,
.seller-action-scope-banner.is-followup {
  border-color: color-mix(in srgb, var(--accent) 32%, var(--border));
}

.seller-action-scope-banner.is-context {
  background: color-mix(in srgb, var(--surface) 92%, var(--accent-soft));
}

.seller-action-mini-checklist {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  align-items: center;
}

.seller-action-mini-checklist span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid var(--seller-soft-border, var(--border));
  background: var(--seller-soft-chip-bg, var(--surface-alt));
  color: var(--text-soft);
  border-radius: 999px;
  padding: 6px 9px;
  font-size: .78rem;
  font-weight: 900;
}

.seller-action-mini-checklist span::before {
  content: "✓";
  color: var(--success);
  font-weight: 950;
}

.seller-action-panel-card .seller-action-scope-banner + .seller-action-mini-checklist,
.seller-visit-scheduler-card .seller-action-scope-banner + .seller-action-mini-checklist,
.seller-chat-workspace-v2441 .seller-action-scope-banner + .seller-action-mini-checklist {
  margin-top: -4px;
}

.seller-chat-workspace-v2441 .seller-action-scope-banner,
.seller-chat-workspace-v2441 .seller-action-mini-checklist {
  margin-bottom: 12px;
}

.seller-workspace-detail-header .seller-action-scope-banner.is-context {
  margin: 2px 0 0;
}

@media (max-width: 720px) {
  .seller-action-scope-banner {
    grid-template-columns: auto minmax(0, 1fr);
  }
  .seller-action-scope-banner b {
    grid-column: 1 / -1;
    justify-self: start;
  }
}


/* V245.4 - Barrido final Fase 1: consistencia visual modo claro/oscuro en seller-leads */
.seller-leads-page {
  --seller-panel-readable-bg: color-mix(in srgb, var(--surface) 96%, var(--bg) 4%);
  --seller-panel-readable-alt: color-mix(in srgb, var(--surface-alt) 94%, var(--surface) 6%);
  --seller-panel-readable-border: color-mix(in srgb, var(--border) 84%, var(--accent) 16%);
  --seller-panel-readable-text: var(--text);
  --seller-panel-readable-heading: var(--heading);
  --seller-panel-readable-muted: var(--text-soft);
}

:root[data-theme="dark"] .seller-leads-page,
body.dark .seller-leads-page {
  --seller-panel-readable-bg: color-mix(in srgb, var(--surface) 92%, #0a1017 8%);
  --seller-panel-readable-alt: color-mix(in srgb, var(--surface-alt) 86%, #0a1017 14%);
  --seller-panel-readable-border: color-mix(in srgb, var(--border) 84%, var(--accent) 16%);
  --seller-panel-readable-text: var(--text);
  --seller-panel-readable-heading: var(--heading);
  --seller-panel-readable-muted: var(--text-soft);
}

/* Contenedores que históricamente usaban fondos oscuros fijos */
.seller-action-panel-card,
.seller-context-selector-card,
.seller-selected-lead-summary,
.seller-history-section,
.seller-history-row,
.seller-history-empty,
.seller-thread-item-v243,
.seller-thread-empty-v243,
.seller-context-result,
.seller-context-no-results,
.seller-context-result-badges span,
.seller-workspace-detail-meta span,
.seller-history-head > span,
.seller-visit-scheduler-card,
.seller-visit-current-detail,
.seller-empty-mini,
.seller-detail-message.is-empty {
  background: var(--seller-panel-readable-bg) !important;
  color: var(--seller-panel-readable-text) !important;
  border-color: var(--seller-panel-readable-border) !important;
}

/* Texto interno: evita gris sobre gris o blanco fijo en modo claro */
.seller-action-panel-card h3,
.seller-action-panel-card strong,
.seller-selected-lead-summary strong,
.seller-history-row strong,
.seller-context-result-main strong,
.seller-workspace-detail-title h3,
.seller-visit-current-detail strong {
  color: var(--seller-panel-readable-heading) !important;
}

.seller-action-panel-card span,
.seller-action-panel-card small,
.seller-action-panel-card p,
.seller-selected-lead-summary span,
.seller-history-row span,
.seller-history-row time,
.seller-history-row p,
.seller-thread-item-v243 small,
.seller-thread-empty-v243,
.seller-context-result-main p,
.seller-context-result-meta,
.seller-context-no-results,
.seller-workspace-detail-title p,
.seller-workspace-detail-description,
.seller-visit-current-detail span {
  color: var(--seller-panel-readable-muted) !important;
}

/* Controles universales del panel vendedor: aplica incluso a inputs sin clase */
.seller-leads-page input,
.seller-leads-page select,
.seller-leads-page textarea {
  background: var(--surface) !important;
  color: var(--text) !important;
  border-color: color-mix(in srgb, var(--border) 82%, var(--accent) 18%) !important;
}

:root[data-theme="dark"] .seller-leads-page input,
:root[data-theme="dark"] .seller-leads-page select,
:root[data-theme="dark"] .seller-leads-page textarea,
body.dark .seller-leads-page input,
body.dark .seller-leads-page select,
body.dark .seller-leads-page textarea {
  background: color-mix(in srgb, var(--surface) 92%, #0a1017 8%) !important;
  color: var(--text) !important;
  border-color: color-mix(in srgb, var(--border) 82%, var(--accent) 18%) !important;
}

.seller-leads-page input::placeholder,
.seller-leads-page textarea::placeholder {
  color: color-mix(in srgb, var(--text-soft) 88%, transparent) !important;
  opacity: 1 !important;
}

.seller-leads-page label > span,
.seller-leads-page .seller-field-label,
.seller-leads-page .kicker {
  color: var(--accent-strong) !important;
}

/* Date/time triggers deben quedar legibles en ambos temas */
.seller-picker-trigger {
  background: var(--surface-alt) !important;
  color: var(--heading) !important;
  border-color: color-mix(in srgb, var(--border) 78%, var(--accent) 22%) !important;
}

:root[data-theme="dark"] .seller-picker-trigger,
body.dark .seller-picker-trigger {
  background: color-mix(in srgb, var(--surface-alt) 84%, #0a1017 16%) !important;
  color: var(--heading) !important;
}

/* Badges/botones secundarios: sin bloques negros en modo claro */
.seller-quick-action-secondary,
.seller-context-actions .btn-secondary,
.seller-workspace-detail-actions .btn-secondary,
.seller-inline-actions .btn-secondary {
  background: color-mix(in srgb, var(--surface) 90%, var(--bg) 10%) !important;
  color: var(--text) !important;
  border-color: color-mix(in srgb, var(--border) 78%, var(--accent) 22%) !important;
}

:root[data-theme="dark"] .seller-quick-action-secondary,
:root[data-theme="dark"] .seller-context-actions .btn-secondary,
:root[data-theme="dark"] .seller-workspace-detail-actions .btn-secondary,
:root[data-theme="dark"] .seller-inline-actions .btn-secondary,
body.dark .seller-quick-action-secondary,
body.dark .seller-context-actions .btn-secondary,
body.dark .seller-workspace-detail-actions .btn-secondary,
body.dark .seller-inline-actions .btn-secondary {
  background: color-mix(in srgb, var(--surface-alt) 78%, #0a1017 22%) !important;
  color: var(--text) !important;
}

/* Estados de alerta legibles en modo claro sin depender del tema oscuro */
.seller-form-helper.is-warning,
.seller-form-feedback.is-error,
.seller-visit-warning {
  color: #7a3f0a !important;
  background: rgba(255, 190, 92, .18) !important;
  border-color: rgba(160, 96, 24, .32) !important;
}

:root[data-theme="dark"] .seller-form-helper.is-warning,
:root[data-theme="dark"] .seller-form-feedback.is-error,
:root[data-theme="dark"] .seller-visit-warning,
body.dark .seller-form-helper.is-warning,
body.dark .seller-form-feedback.is-error,
body.dark .seller-visit-warning {
  color: #ffd9b0 !important;
  background: rgba(255, 149, 60, .14) !important;
  border-color: rgba(255, 190, 120, .48) !important;
}


/* V246.2 - Fase 2: guía de flujo comercial y navegación entre acciones */
.seller-workflow-guide-v2462 {
  display: grid;
  grid-template-columns: minmax(0, .82fr) minmax(420px, 1.18fr);
  gap: 18px;
  align-items: center;
  border-color: color-mix(in srgb, var(--accent) 26%, var(--border));
  background:
    radial-gradient(circle at top left, color-mix(in srgb, var(--accent) 10%, transparent), transparent 34%),
    linear-gradient(180deg, color-mix(in srgb, var(--surface) 98%, transparent), color-mix(in srgb, var(--surface-alt) 96%, transparent));
}

.seller-workflow-guide-v2462 h2 {
  margin: 4px 0 8px;
}

.seller-workflow-guide-v2462 p {
  color: var(--text-soft);
  font-weight: 750;
}

.seller-workflow-guide-grid-v2462 {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
}

.seller-workflow-guide-grid-v2462 article {
  min-height: 112px;
  display: grid;
  align-content: start;
  gap: 6px;
  border: 1px solid color-mix(in srgb, var(--border) 82%, var(--accent) 18%);
  border-radius: 18px;
  padding: 12px;
  background: color-mix(in srgb, var(--surface) 92%, var(--surface-alt));
}

.seller-workflow-guide-grid-v2462 strong {
  color: var(--heading);
  font-size: .9rem;
  line-height: 1.2;
}

.seller-workflow-guide-grid-v2462 span {
  color: var(--text-soft);
  font-weight: 780;
  font-size: .8rem;
  line-height: 1.35;
}

.seller-workflow-bridge-v2462 {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
  padding: 10px;
  border: 1px solid color-mix(in srgb, var(--accent) 22%, var(--border));
  border-radius: 18px;
  background: color-mix(in srgb, var(--surface-alt) 88%, var(--surface));
}

.seller-workflow-bridge-v2462 button {
  min-height: 76px;
  display: grid;
  gap: 3px;
  align-content: center;
  text-align: left;
  border: 1px solid color-mix(in srgb, var(--border) 84%, var(--accent) 16%);
  border-radius: 15px;
  padding: 10px;
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
  transition: transform .16s ease, border-color .16s ease, box-shadow .16s ease, background .16s ease;
}

.seller-workflow-bridge-v2462 button:hover,
.seller-workflow-bridge-v2462 button:focus-visible {
  transform: translateY(-1px);
  outline: none;
  border-color: color-mix(in srgb, var(--accent) 58%, var(--border));
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 14%, transparent);
}

.seller-workflow-bridge-v2462 button.is-current {
  border-color: color-mix(in srgb, var(--accent) 68%, var(--border));
  background: color-mix(in srgb, var(--accent-soft) 72%, var(--surface));
}

.seller-workflow-bridge-v2462 strong,
.seller-workflow-bridge-v2462 span,
.seller-workflow-bridge-v2462 em {
  display: block;
}

.seller-workflow-bridge-v2462 strong {
  color: var(--heading);
  font-size: .86rem;
  font-weight: 950;
}

.seller-workflow-bridge-v2462 span {
  color: var(--text-soft);
  font-size: .75rem;
  font-weight: 820;
  line-height: 1.25;
}

.seller-workflow-bridge-v2462 em {
  justify-self: start;
  margin-top: 2px;
  border-radius: 999px;
  padding: 3px 6px;
  background: color-mix(in srgb, var(--surface-alt) 78%, var(--accent-soft));
  color: var(--accent-strong);
  font-style: normal;
  font-size: .66rem;
  font-weight: 950;
  text-transform: uppercase;
  letter-spacing: .06em;
}

.seller-action-panel-card .seller-workflow-bridge-v2462,
.seller-chat-workspace-v2441 .seller-workflow-bridge-v2462,
.seller-visit-scheduler-card .seller-workflow-bridge-v2462 {
  margin: -2px 0 10px;
}

:root[data-theme="dark"] .seller-workflow-guide-v2462,
body.dark .seller-workflow-guide-v2462,
:root[data-theme="dark"] .seller-workflow-bridge-v2462,
body.dark .seller-workflow-bridge-v2462 {
  background: color-mix(in srgb, var(--surface-alt) 88%, #0a1017 12%);
}

:root[data-theme="dark"] .seller-workflow-guide-grid-v2462 article,
body.dark .seller-workflow-guide-grid-v2462 article,
:root[data-theme="dark"] .seller-workflow-bridge-v2462 button,
body.dark .seller-workflow-bridge-v2462 button {
  background: color-mix(in srgb, var(--surface) 92%, #0a1017 8%);
}

@media (max-width: 1080px) {
  .seller-workflow-guide-v2462 {
    grid-template-columns: 1fr;
  }
  .seller-workflow-guide-grid-v2462,
  .seller-workflow-bridge-v2462 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  .seller-workflow-guide-grid-v2462,
  .seller-workflow-bridge-v2462 {
    grid-template-columns: 1fr;
  }
}


/* V246.3 - Fase 2 ajuste: quitar guía protagonista y agregar estados de entrega del chat */
.seller-workflow-guide-v2462,
.seller-workflow-bridge-v2462 {
  display: none !important;
}

.seller-module-help-v2463 {
  width: 24px;
  height: 24px;
  display: inline-grid;
  place-items: center;
  margin-left: 6px;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--accent) 42%, var(--border));
  background: color-mix(in srgb, var(--accent-soft) 76%, var(--surface));
  color: var(--accent-strong);
  font-size: .78rem;
  font-weight: 950;
  line-height: 1;
  cursor: help;
  vertical-align: middle;
}

.seller-module-help-v2463:hover,
.seller-module-help-v2463:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 16%, transparent);
}

.seller-thread-message-head-v2463 {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.seller-chat-delivery-status-v2463 {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 5px;
  margin-top: 7px;
  color: var(--text-soft);
  font-size: .72rem;
  font-weight: 900;
}

.seller-chat-delivery-status-v2463 > span {
  letter-spacing: -0.12em;
  font-weight: 950;
  color: currentColor;
}

.seller-chat-delivery-status-v2463 em {
  font-style: normal;
  color: currentColor;
}

.seller-chat-delivery-status-v2463.is-sent {
  color: var(--text-soft);
}

.seller-chat-delivery-status-v2463.is-delivered {
  color: color-mix(in srgb, var(--accent-strong) 82%, var(--text));
}

.seller-chat-delivery-status-v2463.is-read {
  color: var(--accent-strong);
}

.seller-thread-item-v243.is-customer .seller-chat-delivery-status-v2463 {
  justify-content: flex-start;
}

.seller-thread-item-v243.is-seller .seller-chat-delivery-status-v2463 {
  justify-content: flex-end;
}

@media (max-width: 620px) {
  .seller-thread-message-head-v2463 {
    align-items: flex-start;
    flex-direction: column;
    gap: 2px;
  }
  .seller-chat-delivery-status-v2463 em {
    display: none;
  }
}
\n\n/* V246.4 - eliminar banners de alcance visibles; ayuda solo por tooltip */\n.seller-action-scope-banner,\n.seller-action-scope-card,\n.seller-workspace-scope-card {\n  display: none !important;\n}\n\n\n/* V246.5 - ayuda solo por tooltip, sin chips/checklists visibles */\n.seller-action-mini-checklist {\n  display: none !important;\n}\n

/* V246.6 - quitar tips visibles y conservar checks reales del chat */
.seller-action-mini-checklist,
.seller-action-mini-checklist * {
  display: none !important;
  visibility: hidden !important;
}

.seller-thread-message-head-v2466 {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.seller-chat-delivery-status-v2466 {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 5px;
  margin-top: 7px;
  font-size: .78rem;
  font-weight: 950;
  line-height: 1;
}

.seller-chat-delivery-status-v2466 > span {
  font-weight: 950;
  line-height: 1;
  letter-spacing: -0.14em;
}

.seller-chat-delivery-status-v2466 em {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.seller-chat-delivery-status-v2466.is-sent {
  color: #8a93a3;
}

.seller-chat-delivery-status-v2466.is-delivered {
  color: #38bdf8;
}

.seller-chat-delivery-status-v2466.is-read {
  color: #2563eb;
}

.seller-thread-item-v243.is-customer .seller-chat-delivery-status-v2466 {
  justify-content: flex-start;
}

.seller-thread-item-v243.is-seller .seller-chat-delivery-status-v2466 {
  justify-content: flex-end;
}

@media (max-width: 620px) {
  .seller-thread-message-head-v2466 {
    align-items: flex-start;
    flex-direction: column;
    gap: 2px;
  }
}


/* V246.9 - Checks de chat visibles y persistidos: ✓ gris, ✓✓ celeste, ✓✓ azul */
.seller-thread-message-head-v2469 {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.seller-thread-message-meta-v2469 {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: nowrap;
  white-space: nowrap;
}

.seller-chat-delivery-status-v2469 {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  font-size: .9rem;
  font-weight: 950;
  line-height: 1;
  opacity: 1 !important;
  visibility: visible !important;
}

.seller-chat-delivery-status-v2469 > span {
  display: inline-block;
  font-weight: 950;
  letter-spacing: -0.14em;
}

.seller-chat-delivery-status-v2469 em {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.seller-chat-delivery-status-v2469.is-sent {
  color: #8a93a3 !important;
}

.seller-chat-delivery-status-v2469.is-delivered {
  color: #38bdf8 !important;
}

.seller-chat-delivery-status-v2469.is-read {
  color: #2563eb !important;
}

@media (max-width: 620px) {
  .seller-thread-message-head-v2469 {
    align-items: flex-start;
    flex-direction: column;
    gap: 2px;
  }
  .seller-thread-message-meta-v2469 {
    justify-content: flex-start;
  }
}


/* V246.12 - campanita vendedor + contadores de pendientes/no leído */
.seller-header-bell-v24612 {
  position: relative;
  min-width: 42px;
  min-height: 42px;
  display: inline-grid;
  place-items: center;
  border: 1px solid color-mix(in srgb, var(--border) 78%, var(--accent) 22%);
  border-radius: 999px;
  background: color-mix(in srgb, var(--surface) 92%, var(--accent-soft));
  color: var(--heading);
  text-decoration: none;
  font-weight: 950;
}

.seller-header-bell-v24612:hover,
.seller-header-bell-v24612:focus-visible {
  outline: none;
  border-color: color-mix(in srgb, var(--accent) 62%, var(--border));
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 16%, transparent);
}

.seller-header-bell-v24612.has-unread {
  color: var(--accent-strong);
}

.seller-header-bell-v24612 strong {
  position: absolute;
  top: -6px;
  right: -6px;
  min-width: 20px;
  height: 20px;
  display: inline-grid;
  place-items: center;
  padding: 0 5px;
  border-radius: 999px;
  border: 2px solid var(--surface);
  background: #ef4444;
  color: #fff;
  font-size: .7rem;
  line-height: 1;
  box-shadow: 0 8px 18px rgba(239,68,68,.28);
}

.seller-chip.is-unread-count {
  background: color-mix(in srgb, #38bdf8 20%, var(--surface));
  border-color: color-mix(in srgb, #38bdf8 56%, var(--border));
  color: color-mix(in srgb, #0284c7 78%, var(--heading));
}

.seller-notifications-actions-v24612 {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
  padding: 10px 12px;
  border: 1px solid color-mix(in srgb, var(--border) 84%, var(--accent) 16%);
  border-radius: 16px;
  background: color-mix(in srgb, var(--surface) 94%, var(--surface-alt));
}

.seller-notifications-actions-v24612 span {
  color: var(--text-soft);
  font-weight: 850;
}

.seller-panel-row.is-unread {
  border-color: color-mix(in srgb, #38bdf8 46%, var(--border));
  background:
    radial-gradient(circle at left top, color-mix(in srgb, #38bdf8 12%, transparent), transparent 34%),
    var(--surface);
}

.seller-panel-row [data-seller-notification-open] {
  justify-self: end;
}

@media (max-width: 680px) {
  .seller-header-bell-v24612 {
    min-width: 38px;
    min-height: 38px;
  }
}


/* V246.14 - Badge global de atención pendiente */
.seller-header-bell-v24614 {
  position: relative;
  min-width: 42px;
  min-height: 42px;
  display: inline-grid;
  place-items: center;
  border: 1px solid color-mix(in srgb, var(--border, #d8c8b6) 78%, var(--accent, #b06f38) 22%);
  border-radius: 999px;
  background: color-mix(in srgb, var(--surface, #fffaf4) 92%, var(--accent-soft, #f5e5d3));
  color: var(--heading, #1f2937);
  text-decoration: none;
  font-weight: 950;
}

.seller-header-bell-v24614:hover,
.seller-header-bell-v24614:focus-visible {
  outline: none;
  border-color: color-mix(in srgb, var(--accent, #b06f38) 62%, var(--border, #d8c8b6));
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent, #b06f38) 16%, transparent);
}

.seller-header-bell-v24614.has-unread {
  color: var(--accent-strong, #8a4f1d);
}

.seller-header-bell-v24614 strong {
  position: absolute;
  top: -6px;
  right: -6px;
  min-width: 20px;
  height: 20px;
  display: inline-grid;
  place-items: center;
  padding: 0 5px;
  border-radius: 999px;
  border: 2px solid var(--surface, #fffaf4);
  background: #ef4444;
  color: #fff;
  font-size: .7rem;
  line-height: 1;
  box-shadow: 0 8px 18px rgba(239,68,68,.28);
}


/* V246.15 · Seller chat attention flow: unread chat dot visible and receipt semantics */
.seller-lead-row-side-v24615 {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex: 0 0 auto;
}

.seller-chat-row-dot-v24615 {
  width: 11px;
  height: 11px;
  min-width: 11px;
  min-height: 11px;
}

.seller-notifications-purpose-v24615 {
  margin: 0 0 12px;
}

.seller-chat-delivery-status-v2469.is-delivered {
  color: #8a93a3 !important;
}

.seller-chat-delivery-status-v2469.is-read {
  color: #0A84FF !important;
}

/* V246.18 · Visitas usa el mismo calendario/reloj profesional que Seguimiento */
.seller-visit-pro-picker-grid .seller-picker-field > span:first-child {
  display: block;
  color: var(--accent-strong, #f0b56b) !important;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 900;
  margin-bottom: 6px;
}

.seller-visit-pro-picker-grid .seller-picker-control {
  display: flex !important;
  align-items: stretch;
  gap: 8px;
  margin-bottom: 0 !important;
  letter-spacing: normal !important;
  text-transform: none !important;
}

.seller-visit-pro-picker-grid .seller-picker-control input[data-visit-date-display],
.seller-visit-pro-picker-grid .seller-picker-control input[data-visit-time-display] {
  flex: 1 1 auto;
  min-width: 0;
  cursor: pointer;
}

.seller-visit-pro-picker-grid .seller-picker-control .seller-picker-trigger {
  flex: 0 0 46px;
}

.seller-visit-pro-picker-grid .seller-picker-control svg {
  width: 18px;
  height: 18px;
}

/* V246.19 · Opcionales profesionales en agendar/editar visita */
.seller-visit-location-options-v24619 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 12px 0 8px;
}

.seller-option-card-v24619 {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px;
  align-items: flex-start;
  border: 1px solid color-mix(in srgb, currentColor 12%, transparent);
  border-radius: 16px;
  padding: 12px;
  background: color-mix(in srgb, currentColor 3%, transparent);
  cursor: pointer;
}

.seller-option-card-v24619 input {
  margin-top: 3px;
  width: 18px;
  height: 18px;
}

.seller-option-card-v24619 strong,
.seller-option-card-v24619 small {
  display: block;
}

.seller-option-card-v24619 small {
  opacity: 0.75;
  line-height: 1.3;
  margin-top: 3px;
}

.seller-option-card-v24619.is-disabled {
  opacity: 0.68;
  cursor: not-allowed;
  background: color-mix(in srgb, currentColor 2%, transparent);
}

.seller-visit-location-helper-v24619 {
  margin-top: 0;
}

.seller-header-bell-wrap-v24619 {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.seller-header-bell-v24619.has-mix::after {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: currentColor;
  opacity: .75;
  position: absolute;
  right: 3px;
  bottom: 3px;
}

.seller-attention-menu-v24619 {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  z-index: 200;
  width: min(350px, calc(100vw - 24px));
  border-radius: 18px;
  border: 1px solid color-mix(in srgb, currentColor 14%, transparent);
  background: var(--surface, #fff);
  color: var(--text, #182238);
  box-shadow: 0 22px 60px rgba(15, 23, 42, 0.22);
  padding: 10px;
}

.seller-attention-menu-v24619[hidden] {
  display: none !important;
}

.seller-attention-menu-head {
  padding: 8px 10px 10px;
  border-bottom: 1px solid color-mix(in srgb, currentColor 10%, transparent);
  margin-bottom: 6px;
}

.seller-attention-menu-head strong,
.seller-attention-menu-head small,
.seller-attention-menu-row strong,
.seller-attention-menu-row small {
  display: block;
}

.seller-attention-menu-head small,
.seller-attention-menu-row small {
  opacity: 0.72;
  font-size: .78rem;
  line-height: 1.25;
}

.seller-attention-menu-row {
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  border: 0;
  background: transparent;
  color: inherit;
  text-align: left;
  padding: 10px;
  border-radius: 14px;
  cursor: pointer;
}

.seller-attention-menu-row:hover,
.seller-attention-menu-row:focus-visible {
  background: color-mix(in srgb, currentColor 7%, transparent);
  outline: none;
}

.seller-attention-menu-row b {
  min-width: 28px;
  height: 28px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #2563eb;
  color: #fff;
  font-size: .82rem;
  padding: 0 8px;
}

html[data-theme='dark'] .seller-attention-menu-v24619,
body.theme-dark .seller-attention-menu-v24619,
.dark .seller-attention-menu-v24619 {
  background: #111827;
  color: #f8fafc;
  border-color: rgba(255,255,255,.14);
}

@media (max-width: 760px) {
  .seller-visit-location-options-v24619 {
    grid-template-columns: 1fr;
  }
}

/* V246.21 · lectura por alcance: contraste claro/oscuro y puntos azules en selectores */
.seller-context-clear {
  background: color-mix(in srgb, var(--surface) 82%, var(--accent) 10%) !important;
  color: var(--heading, #111827) !important;
  border-color: color-mix(in srgb, var(--border) 70%, var(--accent) 30%) !important;
  box-shadow: 0 8px 18px color-mix(in srgb, var(--shadow, rgba(17,24,39,.18)) 22%, transparent) !important;
}

.seller-context-clear:hover,
.seller-context-clear:focus-visible {
  background: color-mix(in srgb, var(--surface) 72%, var(--accent) 18%) !important;
  color: var(--heading, #111827) !important;
  outline: none;
}

.seller-context-result-mainline,
.seller-row-title-with-dot,
.seller-panel-row-main {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.seller-context-result-mainline > span:last-child,
.seller-panel-row-main > span:last-child {
  min-width: 0;
}

.seller-context-result.is-unseen,
.seller-panel-row.is-unseen,
.seller-visit-row.is-unread {
  border-color: color-mix(in srgb, #0A84FF 48%, var(--border) 52%) !important;
  box-shadow: inset 3px 0 0 #0A84FF, 0 10px 22px color-mix(in srgb, #0A84FF 10%, transparent) !important;
}

.seller-context-pending-label {
  color: #0A66CC !important;
  font-weight: 950 !important;
}

.seller-context-result strong,
.seller-context-result small,
.seller-panel-row strong,
.seller-panel-row span,
.seller-visit-row strong,
.seller-visit-row span {
  color: var(--seller-panel-readable-text, var(--text)) !important;
}

.seller-context-result strong,
.seller-panel-row strong,
.seller-visit-row strong {
  color: var(--seller-panel-readable-heading, var(--heading)) !important;
}

:root[data-theme="dark"] .seller-context-clear,
body.dark .seller-context-clear {
  background: color-mix(in srgb, var(--surface-alt) 78%, #0a1017 22%) !important;
  color: var(--heading, #f8fafc) !important;
}

:root[data-theme="dark"] .seller-context-pending-label,
body.dark .seller-context-pending-label {
  color: #60A5FA !important;
}

/* V246.24 - Selector persistente dentro de Estado / Notas / Seguimiento */
.seller-workspace-context-sticky-v24624 {
  display: block;
  margin-bottom: 18px;
}

.seller-workspace-selected-detail-v24624 {
  display: grid;
  gap: 16px;
}

.seller-workspace-selected-detail-v24624 .seller-workspace-detail-header {
  border-top: 3px solid color-mix(in srgb, var(--accent) 58%, transparent);
}

.seller-context-selector-card .seller-context-active {
  border-color: color-mix(in srgb, var(--accent) 42%, var(--border));
  background: color-mix(in srgb, var(--surface) 88%, var(--accent) 7%);
}

.seller-context-result.is-selected {
  outline: 2px solid color-mix(in srgb, var(--accent) 55%, transparent);
  outline-offset: 2px;
}

.seller-context-result.is-selected::after {
  content: "Seleccionado";
  justify-self: end;
  border-radius: 999px;
  padding: 4px 8px;
  font-size: .68rem;
  font-weight: 950;
  color: var(--heading);
  border: 1px solid color-mix(in srgb, var(--accent) 42%, var(--border));
  background: color-mix(in srgb, var(--surface) 76%, var(--accent) 14%);
}

@media (min-width: 1180px) {
  .seller-workspace-context-sticky-v24624 .seller-context-results {
    max-height: min(34vh, 420px);
  }
}

@media (max-width: 720px) {
  .seller-workspace-context-sticky-v24624 {
    margin-bottom: 14px;
  }
  .seller-context-result.is-selected::after {
    justify-self: start;
  }
}

/* V246.26 · Barra de estado comercial real (reemplaza fichas) */
.seller-lead-pipeline-v24625 {
  border: 1px solid color-mix(in srgb, var(--accent) 18%, var(--border));
  border-radius: 22px;
  padding: 16px;
  background: linear-gradient(135deg, color-mix(in srgb, var(--surface) 92%, var(--accent) 8%), var(--surface));
  display: grid;
  gap: 14px;
}

.seller-pipeline-head-v24625 {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.seller-pipeline-head-v24625 h3 {
  margin: 3px 0 0;
  color: var(--heading);
}

.seller-pipeline-head-v24625 > span {
  border: 1px solid color-mix(in srgb, var(--accent) 28%, var(--border));
  border-radius: 999px;
  padding: 6px 10px;
  color: var(--accent-strong);
  background: color-mix(in srgb, var(--accent) 10%, transparent);
  font-weight: 900;
  font-size: .78rem;
  white-space: nowrap;
}

.seller-pipeline-statusbar-shell-v24626 {
  position: relative;
  padding: 6px 2px 2px;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: thin;
}

.seller-pipeline-progress-v24626 {
  position: absolute;
  left: 38px;
  right: 38px;
  top: 34px;
  height: 6px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--border) 82%, transparent);
  overflow: hidden;
  z-index: 0;
}

.seller-pipeline-progress-v24626 > span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #16a34a 0%, color-mix(in srgb, #16a34a 42%, var(--accent-strong)) 48%, var(--accent-strong) 100%);
}

.seller-pipeline-statusbar-v24626 {
  position: relative;
  z-index: 1;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(142px, 1fr);
  gap: 12px;
  min-width: max-content;
  align-items: start;
  padding: 0 2px;
}

.seller-pipeline-node-v24626 {
  position: relative;
  display: grid;
  justify-items: center;
  align-content: start;
  gap: 10px;
  text-align: center;
  min-height: 112px;
}

.seller-pipeline-node-circle-v24626 {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  display: inline-grid;
  place-items: center;
  font-weight: 900;
  font-size: .86rem;
  border: 2px solid var(--border);
  background: var(--surface);
  color: var(--text-soft);
  box-shadow: 0 0 0 6px color-mix(in srgb, var(--surface) 88%, transparent);
}

.seller-pipeline-node-label-v24626 {
  display: grid;
  gap: 4px;
}

.seller-pipeline-node-label-v24626 strong {
  color: var(--heading);
  font-size: .92rem;
  line-height: 1.2;
}

.seller-pipeline-node-label-v24626 small {
  color: var(--text-soft);
  font-size: .78rem;
  line-height: 1.35;
  max-width: 138px;
}

.seller-pipeline-node-v24626.is-done .seller-pipeline-node-circle-v24626 {
  background: #16a34a;
  border-color: #16a34a;
  color: #fff;
}

.seller-pipeline-node-v24626.is-current .seller-pipeline-node-circle-v24626 {
  background: var(--accent-strong);
  border-color: var(--accent-strong);
  color: #fff;
  box-shadow: 0 0 0 7px color-mix(in srgb, var(--accent) 20%, transparent);
}

.seller-pipeline-node-v24626.is-current .seller-pipeline-node-label-v24626 strong {
  color: var(--accent-strong);
}

.seller-pipeline-node-v24626.is-future {
  opacity: .72;
}

.seller-pipeline-node-v24626.is-final .seller-pipeline-node-circle-v24626 {
  border-style: dashed;
}

:root[data-theme="light"] .seller-pipeline-node-circle-v24626,
body:not(.dark) .seller-pipeline-node-circle-v24626 {
  background: #ffffff;
}

:root[data-theme="light"] .seller-pipeline-progress-v24626,
body:not(.dark) .seller-pipeline-progress-v24626 {
  background: rgba(148, 163, 184, .25);
}

@media (max-width: 900px) {
  .seller-pipeline-statusbar-v24626 {
    grid-auto-columns: minmax(130px, 1fr);
  }
}

@media (max-width: 720px) {
  .seller-pipeline-head-v24625 {
    display: grid;
  }
  .seller-pipeline-statusbar-shell-v24626 {
    padding-bottom: 8px;
  }
}

.seller-contact-policy-v24625 {
  border: 1px solid color-mix(in srgb, #f59e0b 32%, var(--border));
  border-radius: 20px;
  padding: 13px 14px;
  background: color-mix(in srgb, #f59e0b 10%, var(--surface));
  display: grid;
  gap: 4px;
  color: var(--text);
}

.seller-contact-policy-v24625 strong {
  color: var(--heading);
}

.seller-contact-policy-v24625 span {
  color: var(--text-soft);
  line-height: 1.45;
}

.seller-contact-policy-v24625.is-open {
  border-color: color-mix(in srgb, #16a34a 38%, var(--border));
  background: color-mix(in srgb, #16a34a 10%, var(--surface));
}

.is-protected-contact-v24625 strong,
.seller-chip.is-contact-protected-v24625 {
  color: color-mix(in srgb, var(--text-soft) 92%, var(--heading) 8%) !important;
}

.is-protected-contact-v24625 small {
  display: block;
  margin-top: 4px;
  color: color-mix(in srgb, #f59e0b 82%, var(--text-soft));
  font-weight: 800;
}

.seller-whatsapp-continue-v24417.is-disabled {
  opacity: .75;
  cursor: not-allowed;
}

:root[data-theme="light"] .seller-contact-policy-v24625,
body:not(.dark) .seller-contact-policy-v24625 {
  color: #182235;
}



/* V246.28 · Corrección segura CSS-only de barra de estado comercial.
   Importante: NO modifica JS. Mantiene el markup funcional de V246.26 y solo cambia presentación.
   Objetivo: reducir círculos, evitar fichas, alternar etiquetas y hacer más claro el estado actual.
*/
.seller-lead-pipeline-v24625 {
  gap: 12px;
  overflow: hidden;
}

.seller-lead-pipeline-v24625 .seller-pipeline-track-v24625 {
  position: relative;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(118px, 1fr);
  grid-template-columns: none;
  gap: 10px;
  min-width: max-content;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 8px 6px 14px;
  scrollbar-width: thin;
}

.seller-lead-pipeline-v24625 .seller-pipeline-track-v24625::before {
  content: "";
  position: absolute;
  left: 24px;
  right: 24px;
  top: 50px;
  height: 4px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--border) 78%, transparent);
  z-index: 0;
}

.seller-lead-pipeline-v24625 .seller-pipeline-step-v24625 {
  position: relative;
  z-index: 1;
  width: 118px;
  min-height: 82px;
  border: 0;
  border-radius: 0;
  padding: 0;
  background: transparent !important;
  display: grid;
  grid-template-rows: 30px 20px 30px;
  justify-items: center;
  align-items: center;
  gap: 0;
  box-shadow: none !important;
  text-align: center;
  align-content: center;
}

.seller-lead-pipeline-v24625 .seller-pipeline-step-v24625 strong {
  max-width: 112px;
  font-size: .76rem;
  line-height: 1.15;
  font-weight: 900;
  color: var(--heading);
}

.seller-lead-pipeline-v24625 .seller-pipeline-step-v24625 small {
  display: none;
}

.seller-lead-pipeline-v24625 .seller-pipeline-step-v24625:nth-child(odd) strong {
  grid-row: 3;
  align-self: start;
}

.seller-lead-pipeline-v24625 .seller-pipeline-step-v24625:nth-child(even) strong {
  grid-row: 1;
  align-self: end;
}

.seller-lead-pipeline-v24625 .seller-pipeline-dot-v24625 {
  grid-row: 2;
  width: 16px;
  height: 16px;
  border-width: 2px;
  box-shadow: 0 0 0 5px color-mix(in srgb, var(--surface) 88%, transparent);
  background: var(--surface);
}

.seller-lead-pipeline-v24625 .seller-pipeline-step-v24625.is-done .seller-pipeline-dot-v24625 {
  background: #16a34a;
  border-color: #16a34a;
}

.seller-lead-pipeline-v24625 .seller-pipeline-step-v24625.is-current .seller-pipeline-dot-v24625 {
  width: 18px;
  height: 18px;
  background: var(--accent-strong);
  border-color: var(--accent-strong);
  box-shadow: 0 0 0 6px color-mix(in srgb, var(--accent) 20%, transparent);
}

.seller-lead-pipeline-v24625 .seller-pipeline-step-v24625.is-current strong {
  color: var(--accent-strong);
}

.seller-lead-pipeline-v24625 .seller-pipeline-step-v24625.is-current::after {
  content: "Actual";
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  margin-top: 23px;
  border: 1px solid color-mix(in srgb, var(--accent) 30%, var(--border));
  border-radius: 999px;
  padding: 2px 7px;
  background: var(--surface);
  color: var(--accent-strong);
  font-size: .64rem;
  font-weight: 900;
  letter-spacing: .02em;
}

.seller-lead-pipeline-v24625 .seller-pipeline-step-v24625.is-future {
  opacity: .62;
}

.seller-lead-pipeline-v24625 .seller-pipeline-head-v24625 {
  align-items: center;
}

.seller-lead-pipeline-v24625 .seller-form-helper {
  margin-top: -4px;
}

:root[data-theme="light"] .seller-lead-pipeline-v24625 .seller-pipeline-track-v24625::before,
body:not(.dark) .seller-lead-pipeline-v24625 .seller-pipeline-track-v24625::before {
  background: rgba(148, 163, 184, .28);
}

@media (max-width: 780px) {
  .seller-lead-pipeline-v24625 .seller-pipeline-track-v24625 {
    grid-auto-columns: minmax(104px, 1fr);
  }

  .seller-lead-pipeline-v24625 .seller-pipeline-step-v24625 {
    width: 104px;
  }

  .seller-lead-pipeline-v24625 .seller-pipeline-step-v24625 strong {
    max-width: 98px;
    font-size: .72rem;
  }
}


/* V246.29 · Ajuste REAL sobre la barra activa v24626.
   Motivo: V246.28 apuntó a clases antiguas (.seller-pipeline-track-v24625),
   por eso visualmente no cambió nada. Esta versión NO toca JS/backend/SQL;
   solo apunta a las clases actualmente renderizadas por seller-leads.js:
   .seller-pipeline-statusbar-shell-v24626 / .seller-pipeline-node-v24626.
*/
.seller-lead-pipeline-v24625 .seller-pipeline-statusbar-shell-v24626 {
  position: relative;
  padding: 2px 2px 10px !important;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: thin;
}

.seller-lead-pipeline-v24625 .seller-pipeline-progress-v24626 {
  left: 18px !important;
  right: 18px !important;
  top: 45px !important;
  height: 4px !important;
  border-radius: 999px;
  background: color-mix(in srgb, var(--border) 76%, transparent) !important;
}

.seller-lead-pipeline-v24625 .seller-pipeline-progress-v24626 > span {
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #16a34a 0%, color-mix(in srgb, #16a34a 45%, var(--accent-strong)) 52%, var(--accent-strong) 100%) !important;
}

.seller-lead-pipeline-v24625 .seller-pipeline-statusbar-v24626 {
  grid-auto-columns: minmax(104px, 1fr) !important;
  gap: 10px !important;
  align-items: center !important;
  min-width: max-content !important;
  padding: 0 2px !important;
}

.seller-lead-pipeline-v24625 .seller-pipeline-node-v24626 {
  width: 104px !important;
  min-height: 78px !important;
  display: grid !important;
  grid-template-rows: 28px 18px 28px !important;
  gap: 0 !important;
  justify-items: center !important;
  align-items: center !important;
  align-content: center !important;
  text-align: center !important;
}

.seller-lead-pipeline-v24625 .seller-pipeline-node-circle-v24626 {
  grid-row: 2 !important;
  width: 16px !important;
  height: 16px !important;
  min-width: 16px !important;
  min-height: 16px !important;
  border-width: 2px !important;
  font-size: 0 !important;
  color: transparent !important;
  box-shadow: 0 0 0 5px color-mix(in srgb, var(--surface) 88%, transparent) !important;
}

.seller-lead-pipeline-v24625 .seller-pipeline-node-v24626.is-current .seller-pipeline-node-circle-v24626 {
  width: 18px !important;
  height: 18px !important;
  min-width: 18px !important;
  min-height: 18px !important;
  box-shadow: 0 0 0 6px color-mix(in srgb, var(--accent) 20%, transparent) !important;
}

.seller-lead-pipeline-v24625 .seller-pipeline-node-label-v24626 {
  display: grid !important;
  gap: 0 !important;
  max-width: 100px !important;
  line-height: 1.12 !important;
}

.seller-lead-pipeline-v24625 .seller-pipeline-node-label-v24626 strong {
  font-size: .74rem !important;
  line-height: 1.12 !important;
  font-weight: 900 !important;
  color: var(--heading);
  max-width: 100px;
}

.seller-lead-pipeline-v24625 .seller-pipeline-node-label-v24626 small {
  display: none !important;
}

.seller-lead-pipeline-v24625 .seller-pipeline-node-v24626.is-top .seller-pipeline-node-label-v24626 {
  grid-row: 1 !important;
  align-self: end !important;
}

.seller-lead-pipeline-v24625 .seller-pipeline-node-v24626.is-bottom .seller-pipeline-node-label-v24626 {
  grid-row: 3 !important;
  align-self: start !important;
}

.seller-lead-pipeline-v24625 .seller-pipeline-node-v24626.is-current .seller-pipeline-node-label-v24626 strong {
  color: var(--accent-strong) !important;
}

.seller-lead-pipeline-v24625 .seller-pipeline-node-v24626.is-current::after {
  content: "Actual";
  position: absolute;
  left: 50%;
  top: 45px;
  transform: translateX(-50%);
  margin-top: 13px;
  border: 1px solid color-mix(in srgb, var(--accent) 30%, var(--border));
  border-radius: 999px;
  padding: 1px 6px;
  background: var(--surface);
  color: var(--accent-strong);
  font-size: .61rem;
  font-weight: 900;
  letter-spacing: .02em;
  white-space: nowrap;
}

.seller-lead-pipeline-v24625 .seller-pipeline-summary-v24627,
.seller-lead-pipeline-v24625 .seller-pipeline-summary-v24626 {
  margin-top: 2px;
}

:root[data-theme="light"] .seller-lead-pipeline-v24625 .seller-pipeline-progress-v24626,
body:not(.dark) .seller-lead-pipeline-v24625 .seller-pipeline-progress-v24626 {
  background: rgba(148, 163, 184, .28) !important;
}

:root[data-theme="light"] .seller-lead-pipeline-v24625 .seller-pipeline-node-circle-v24626,
body:not(.dark) .seller-lead-pipeline-v24625 .seller-pipeline-node-circle-v24626 {
  background: #ffffff;
}

@media (max-width: 780px) {
  .seller-lead-pipeline-v24625 .seller-pipeline-statusbar-v24626 {
    grid-auto-columns: minmax(94px, 1fr) !important;
  }

  .seller-lead-pipeline-v24625 .seller-pipeline-node-v24626 {
    width: 94px !important;
  }

  .seller-lead-pipeline-v24625 .seller-pipeline-node-label-v24626 strong {
    max-width: 90px;
    font-size: .70rem !important;
  }
}


/* V246.30 · Barra de estado en dos filas, sin scroll horizontal, con avance visual correcto.
   Reglas:
   - CSS-only, sin tocar seller-leads.js.
   - Oculta la barra lineal única anterior.
   - Divide la ruta principal en una grilla 4x2.
   - Los conectores de cada fila se pintan según estado, de modo que el avance llega hasta el estado actual.
*/
.seller-lead-pipeline-v24625 .seller-pipeline-statusbar-shell-v24626 {
  position: relative;
  overflow: visible !important;
  padding: 2px 0 4px !important;
}

.seller-lead-pipeline-v24625 .seller-pipeline-progress-v24626 {
  display: none !important;
}

.seller-lead-pipeline-v24625 .seller-pipeline-statusbar-v24626 {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(110px, 1fr)) !important;
  grid-auto-flow: row !important;
  grid-auto-columns: initial !important;
  min-width: 0 !important;
  width: 100% !important;
  gap: 24px 14px !important;
  align-items: stretch !important;
  padding: 4px 0 0 !important;
}

.seller-lead-pipeline-v24625 .seller-pipeline-node-v24626 {
  position: relative !important;
  width: auto !important;
  min-height: 72px !important;
  display: grid !important;
  grid-template-rows: 18px auto !important;
  justify-items: center !important;
  align-items: start !important;
  gap: 8px !important;
  text-align: center !important;
}

.seller-lead-pipeline-v24625 .seller-pipeline-node-v24626::before,
.seller-lead-pipeline-v24625 .seller-pipeline-node-v24626::after {
  content: "";
  position: absolute;
  top: 6px;
  height: 4px;
  width: calc(50% - 12px);
  border-radius: 999px;
  background: color-mix(in srgb, var(--border) 76%, transparent);
  z-index: 0;
}

.seller-lead-pipeline-v24625 .seller-pipeline-node-v24626::before { left: 0; }
.seller-lead-pipeline-v24625 .seller-pipeline-node-v24626::after { right: 0; }

.seller-lead-pipeline-v24625 .seller-pipeline-node-v24626:nth-child(4n+1)::before {
  display: none;
}
.seller-lead-pipeline-v24625 .seller-pipeline-node-v24626:nth-child(4n)::after {
  display: none;
}

.seller-lead-pipeline-v24625 .seller-pipeline-node-circle-v24626 {
  grid-row: 1 !important;
  width: 16px !important;
  height: 16px !important;
  min-width: 16px !important;
  min-height: 16px !important;
  border-width: 2px !important;
  font-size: 0 !important;
  color: transparent !important;
  box-shadow: 0 0 0 5px color-mix(in srgb, var(--surface) 88%, transparent) !important;
  position: relative;
  z-index: 1;
}

.seller-lead-pipeline-v24625 .seller-pipeline-node-v24626.is-current .seller-pipeline-node-circle-v24626 {
  width: 18px !important;
  height: 18px !important;
  min-width: 18px !important;
  min-height: 18px !important;
  box-shadow: 0 0 0 6px color-mix(in srgb, var(--accent) 20%, transparent) !important;
}

.seller-lead-pipeline-v24625 .seller-pipeline-node-v24626.is-done::before,
.seller-lead-pipeline-v24625 .seller-pipeline-node-v24626.is-done::after {
  background: #16a34a !important;
}

.seller-lead-pipeline-v24625 .seller-pipeline-node-v24626.is-current::before {
  background: linear-gradient(90deg, #16a34a 0%, color-mix(in srgb, #16a34a 45%, var(--accent-strong)) 100%) !important;
}

.seller-lead-pipeline-v24625 .seller-pipeline-node-v24626.is-current::after,
.seller-lead-pipeline-v24625 .seller-pipeline-node-v24626.is-future::before,
.seller-lead-pipeline-v24625 .seller-pipeline-node-v24626.is-future::after {
  background: color-mix(in srgb, var(--border) 76%, transparent) !important;
}

.seller-lead-pipeline-v24625 .seller-pipeline-node-label-v24626 {
  grid-row: 2 !important;
  display: grid !important;
  gap: 2px !important;
  max-width: 108px !important;
  line-height: 1.12 !important;
}

.seller-lead-pipeline-v24625 .seller-pipeline-node-label-v24626 strong {
  font-size: .74rem !important;
  line-height: 1.12 !important;
  font-weight: 900 !important;
  color: var(--heading);
  max-width: 108px;
}

.seller-lead-pipeline-v24625 .seller-pipeline-node-label-v24626 small {
  display: none !important;
}

.seller-lead-pipeline-v24625 .seller-pipeline-node-v24626.is-current .seller-pipeline-node-label-v24626 strong {
  color: var(--accent-strong) !important;
}

.seller-lead-pipeline-v24625 .seller-pipeline-node-v24626.is-current::after {
  background: color-mix(in srgb, var(--border) 76%, transparent) !important;
}

.seller-lead-pipeline-v24625 .seller-pipeline-node-v24626.is-current .seller-pipeline-node-label-v24626::after {
  content: "Actual";
  justify-self: center;
  margin-top: 4px;
  border: 1px solid color-mix(in srgb, var(--accent) 30%, var(--border));
  border-radius: 999px;
  padding: 1px 6px;
  background: var(--surface);
  color: var(--accent-strong);
  font-size: .61rem;
  font-weight: 900;
  letter-spacing: .02em;
  white-space: nowrap;
}

.seller-lead-pipeline-v24625 .seller-pipeline-node-v24626.is-future {
  opacity: .72 !important;
}

.seller-lead-pipeline-v24625 .seller-pipeline-summary-v24627,
.seller-lead-pipeline-v24625 .seller-pipeline-summary-v24626 {
  margin-top: 4px;
}

:root[data-theme="light"] .seller-lead-pipeline-v24625 .seller-pipeline-node-circle-v24626,
body:not(.dark) .seller-lead-pipeline-v24625 .seller-pipeline-node-circle-v24626 {
  background: #ffffff;
}

:root[data-theme="light"] .seller-lead-pipeline-v24625 .seller-pipeline-node-v24626::before,
:root[data-theme="light"] .seller-lead-pipeline-v24625 .seller-pipeline-node-v24626::after,
body:not(.dark) .seller-lead-pipeline-v24625 .seller-pipeline-node-v24626::before,
body:not(.dark) .seller-lead-pipeline-v24625 .seller-pipeline-node-v24626::after {
  background: rgba(148, 163, 184, .28);
}

@media (max-width: 780px) {
  .seller-lead-pipeline-v24625 .seller-pipeline-statusbar-v24626 {
    grid-template-columns: repeat(2, minmax(110px, 1fr)) !important;
  }
  .seller-lead-pipeline-v24625 .seller-pipeline-node-v24626:nth-child(4n+1)::before,
  .seller-lead-pipeline-v24625 .seller-pipeline-node-v24626:nth-child(4n)::after {
    display: block;
  }
  .seller-lead-pipeline-v24625 .seller-pipeline-node-v24626:nth-child(2n+1)::before {
    display: none;
  }
  .seller-lead-pipeline-v24625 .seller-pipeline-node-v24626:nth-child(2n)::after {
    display: none;
  }
}


/* V246.31 · Barra profesional interactiva.
   Corrección de enfoque: no forzar los 13 estados como una misma línea.
   La ruta principal se muestra en botones compactos; visitas especiales y resultados finales van separados.
*/
.seller-status-flow-v24631 {
  gap: 14px !important;
  overflow: visible !important;
}

.seller-status-flow-head-v24631 {
  align-items: center;
}

.seller-status-flow-grid-v24631 {
  display: grid;
  grid-template-columns: repeat(4, minmax(128px, 1fr));
  gap: 10px;
}

.seller-status-step-v24631 {
  position: relative;
  appearance: none;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--surface-alt);
  color: var(--text);
  min-height: 74px;
  padding: 11px 12px 10px 42px;
  display: grid;
  gap: 2px;
  text-align: left;
  cursor: pointer;
  transition: transform .16s ease, border-color .16s ease, box-shadow .16s ease, background .16s ease;
}

.seller-status-step-v24631::before {
  content: "";
  position: absolute;
  left: -10px;
  top: 50%;
  width: 10px;
  height: 3px;
  transform: translateY(-50%);
  background: color-mix(in srgb, var(--border) 78%, transparent);
}

.seller-status-step-v24631:nth-child(4n+1)::before {
  display: none;
}

.seller-status-step-v24631:not(:disabled):hover {
  transform: translateY(-1px);
  border-color: color-mix(in srgb, var(--accent) 42%, var(--border));
  box-shadow: 0 12px 24px color-mix(in srgb, var(--accent) 10%, transparent);
}

.seller-status-step-v24631:disabled {
  cursor: default;
}

.seller-status-step-index-v24631 {
  position: absolute;
  left: 12px;
  top: 50%;
  width: 20px;
  height: 20px;
  border-radius: 999px;
  transform: translateY(-50%);
  display: inline-grid;
  place-items: center;
  font-size: .68rem;
  font-weight: 900;
  border: 2px solid var(--border);
  background: var(--surface);
  color: var(--text-soft);
}

.seller-status-step-v24631 strong {
  color: var(--heading);
  font-size: .86rem;
  line-height: 1.18;
}

.seller-status-step-v24631 small {
  color: var(--text-soft);
  font-size: .74rem;
  line-height: 1.25;
}

.seller-status-step-v24631.is-done {
  border-color: color-mix(in srgb, #16a34a 36%, var(--border));
  background: color-mix(in srgb, #16a34a 7%, var(--surface));
}

.seller-status-step-v24631.is-done::before {
  background: #16a34a;
}

.seller-status-step-v24631.is-done .seller-status-step-index-v24631 {
  background: #16a34a;
  border-color: #16a34a;
  color: #fff;
}

.seller-status-step-v24631.is-current {
  border-color: color-mix(in srgb, var(--accent) 62%, var(--border));
  box-shadow: 0 14px 30px color-mix(in srgb, var(--accent) 12%, transparent);
  background: color-mix(in srgb, var(--accent) 7%, var(--surface));
}

.seller-status-step-v24631.is-current::after {
  content: "Actual";
  position: absolute;
  right: 10px;
  top: 8px;
  border: 1px solid color-mix(in srgb, var(--accent) 30%, var(--border));
  border-radius: 999px;
  padding: 2px 7px;
  color: var(--accent-strong);
  background: var(--surface);
  font-size: .62rem;
  font-weight: 900;
}

.seller-status-step-v24631.is-current .seller-status-step-index-v24631 {
  background: var(--accent-strong);
  border-color: var(--accent-strong);
  color: #fff;
}

.seller-status-step-v24631.is-current strong {
  color: var(--accent-strong);
}

.seller-status-step-v24631.is-future {
  opacity: .86;
}

.seller-status-step-v24631.is-future:not(:disabled) {
  border-style: dashed;
}

.seller-status-flow-summary-v24631 {
  display: grid;
  grid-template-columns: repeat(2, minmax(180px, 1fr));
  gap: 10px;
}

.seller-status-flow-summary-v24631 article,
.seller-status-secondary-v24631 > div {
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--surface-alt);
  padding: 11px 12px;
  display: grid;
  gap: 4px;
}

.seller-status-flow-summary-v24631 span,
.seller-status-secondary-title-v24631 {
  color: var(--text-soft);
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  font-weight: 900;
}

.seller-status-flow-summary-v24631 strong {
  color: var(--heading);
  font-weight: 900;
}

.seller-status-flow-summary-v24631 small {
  color: var(--text-soft);
  line-height: 1.35;
}

.seller-status-secondary-v24631 {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 10px;
}

.seller-status-secondary-actions-v24631 {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.seller-status-action-v24631 {
  appearance: none;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text);
  padding: 7px 10px;
  display: inline-grid;
  gap: 1px;
  text-align: left;
  cursor: pointer;
  transition: transform .16s ease, border-color .16s ease, box-shadow .16s ease;
}

.seller-status-action-v24631 strong {
  color: var(--heading);
  font-size: .78rem;
}

.seller-status-action-v24631 small {
  color: var(--text-soft);
  font-size: .68rem;
}

.seller-status-action-v24631:not(:disabled):hover {
  transform: translateY(-1px);
  border-color: color-mix(in srgb, var(--accent) 42%, var(--border));
  box-shadow: 0 10px 22px color-mix(in srgb, var(--accent) 10%, transparent);
}

.seller-status-action-v24631.is-current {
  border-color: color-mix(in srgb, var(--accent) 50%, var(--border));
  background: color-mix(in srgb, var(--accent) 8%, var(--surface));
}

.seller-status-action-v24631:disabled {
  opacity: .68;
  cursor: default;
}

:root[data-theme="light"] .seller-status-step-v24631,
:root[data-theme="light"] .seller-status-flow-summary-v24631 article,
:root[data-theme="light"] .seller-status-secondary-v24631 > div,
:root[data-theme="light"] .seller-status-action-v24631,
body:not(.dark) .seller-status-step-v24631,
body:not(.dark) .seller-status-flow-summary-v24631 article,
body:not(.dark) .seller-status-secondary-v24631 > div,
body:not(.dark) .seller-status-action-v24631 {
  background: #fff;
}

@media (max-width: 920px) {
  .seller-status-flow-grid-v24631 {
    grid-template-columns: repeat(2, minmax(120px, 1fr));
  }
  .seller-status-secondary-v24631,
  .seller-status-flow-summary-v24631 {
    grid-template-columns: 1fr;
  }
  .seller-status-step-v24631:nth-child(4n+1)::before {
    display: block;
  }
  .seller-status-step-v24631:nth-child(2n+1)::before {
    display: none;
  }
}

@media (max-width: 560px) {
  .seller-status-flow-grid-v24631 {
    grid-template-columns: 1fr;
  }
  .seller-status-step-v24631::before {
    display: none !important;
  }
}


/* V246.32 · Estado comercial profesional sin selector redundante.
   La barra deja de ser una línea confusa y se convierte en flujo de botones:
   - pasos automáticos bloqueados;
   - estados manuales habilitados desde negociación/documentación;
   - cambios directos con confirmación;
   - sin tarjetas “paso actual/siguiente referencia” ni formulario selector duplicado.
*/
.seller-status-flow-v24632 {
  gap: 14px !important;
  overflow: visible !important;
}

.seller-status-flow-head-v24632 {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.seller-status-flow-head-v24632 h3 {
  margin: 3px 0 0;
  color: var(--heading);
}

.seller-status-flow-head-v24632 > span {
  border: 1px solid color-mix(in srgb, var(--accent) 28%, var(--border));
  border-radius: 999px;
  padding: 6px 10px;
  color: var(--accent-strong);
  background: color-mix(in srgb, var(--accent) 10%, transparent);
  font-weight: 900;
  font-size: .78rem;
  white-space: nowrap;
}

.seller-status-progress-v24632 {
  height: 8px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--border) 76%, transparent);
  overflow: hidden;
}

.seller-status-progress-v24632 > span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #16a34a 0%, color-mix(in srgb, #16a34a 45%, var(--accent-strong)) 60%, var(--accent-strong) 100%);
}

.seller-status-flow-grid-v24632 {
  display: grid;
  grid-template-columns: repeat(5, minmax(128px, 1fr));
  gap: 10px;
}

.seller-status-step-v24632 {
  appearance: none;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--surface-alt);
  color: var(--text);
  padding: 11px 12px;
  min-height: 76px;
  display: grid;
  grid-template-columns: 26px 1fr;
  gap: 9px;
  align-items: center;
  text-align: left;
  transition: transform .16s ease, border-color .16s ease, box-shadow .16s ease, background .16s ease;
}

.seller-status-step-v24632:not(:disabled) {
  cursor: pointer;
}

.seller-status-step-v24632:not(:disabled):hover {
  transform: translateY(-1px);
  border-color: color-mix(in srgb, var(--accent) 42%, var(--border));
  box-shadow: 0 12px 26px color-mix(in srgb, var(--accent) 10%, transparent);
}

.seller-status-step-v24632:disabled {
  cursor: default;
}

.seller-status-step-index-v24632 {
  width: 24px;
  height: 24px;
  border-radius: 999px;
  display: inline-grid;
  place-items: center;
  border: 2px solid var(--border);
  background: var(--surface);
  color: var(--text-soft);
  font-size: .72rem;
  font-weight: 900;
}

.seller-status-step-text-v24632 {
  display: grid;
  gap: 3px;
}

.seller-status-step-text-v24632 strong {
  color: var(--heading);
  font-size: .84rem;
  line-height: 1.16;
}

.seller-status-step-text-v24632 small {
  color: var(--text-soft);
  font-size: .70rem;
  line-height: 1.1;
  font-weight: 800;
}

.seller-status-step-v24632.is-done {
  border-color: color-mix(in srgb, #16a34a 34%, var(--border));
  background: color-mix(in srgb, #16a34a 7%, var(--surface));
}

.seller-status-step-v24632.is-done .seller-status-step-index-v24632 {
  background: #16a34a;
  border-color: #16a34a;
  color: #fff;
}

.seller-status-step-v24632.is-current {
  border-color: color-mix(in srgb, var(--accent) 60%, var(--border));
  background: color-mix(in srgb, var(--accent) 8%, var(--surface));
  box-shadow: 0 12px 28px color-mix(in srgb, var(--accent) 12%, transparent);
}

.seller-status-step-v24632.is-current .seller-status-step-index-v24632 {
  background: var(--accent-strong);
  border-color: var(--accent-strong);
  color: #fff;
}

.seller-status-step-v24632.is-current strong {
  color: var(--accent-strong);
}

.seller-status-step-v24632.is-future.is-auto {
  opacity: .62;
}

.seller-status-step-v24632.is-future.is-manual {
  border-style: dashed;
}

.seller-status-step-v24632.is-final {
  background: color-mix(in srgb, var(--surface-alt) 90%, var(--accent) 10%);
}

:root[data-theme="light"] .seller-status-step-v24632,
body:not(.dark) .seller-status-step-v24632 {
  background: #fff;
}

:root[data-theme="light"] .seller-status-step-v24632.is-done,
body:not(.dark) .seller-status-step-v24632.is-done {
  background: #f0fdf4;
}

:root[data-theme="light"] .seller-status-step-v24632.is-current,
body:not(.dark) .seller-status-step-v24632.is-current {
  background: #fff7ed;
}

@media (max-width: 1100px) {
  .seller-status-flow-grid-v24632 {
    grid-template-columns: repeat(3, minmax(128px, 1fr));
  }
}

@media (max-width: 720px) {
  .seller-status-flow-head-v24632 {
    display: grid;
  }

  .seller-status-flow-grid-v24632 {
    grid-template-columns: repeat(2, minmax(120px, 1fr));
  }
}

@media (max-width: 460px) {
  .seller-status-flow-grid-v24632 {
    grid-template-columns: 1fr;
  }
}


/* V246.33 · Diagrama de flujo con conectores y finales simplificados.
   Flujo final:
   Solicitud -> Contactado -> Conversación -> Solicitud visita -> Visita -> Negociación/documentación -> Vendida / Cerrar sin venta / Archivar.
*/
.seller-status-flow-v24633 {
  --status-color-start: #16a34a;
  --status-color-mid: #0ea5e9;
  --status-color-current: var(--accent-strong);
  --status-color-won: #16a34a;
  --status-color-lost: #b45309;
  --status-color-archive: #64748b;
}

.seller-status-progress-v24633 > span {
  background: linear-gradient(
    90deg,
    var(--status-color-start) 0%,
    var(--status-color-mid) 56%,
    var(--status-color-current) 100%
  ) !important;
}

.seller-status-flow-grid-v24633 {
  position: relative;
  grid-template-columns: repeat(3, minmax(150px, 1fr)) !important;
  gap: 16px 22px !important;
}

.seller-status-step-v24633 {
  position: relative;
  min-height: 82px !important;
  z-index: 1;
}

.seller-status-step-v24633::before {
  content: "";
  position: absolute;
  left: -22px;
  top: 50%;
  width: 22px;
  height: 3px;
  transform: translateY(-50%);
  background: color-mix(in srgb, var(--border) 78%, transparent);
  z-index: 0;
}

.seller-status-step-v24633:nth-child(3n+1)::before {
  display: none;
}

.seller-status-step-v24633::after {
  content: "";
  position: absolute;
  left: -12px;
  top: 50%;
  width: 8px;
  height: 8px;
  border-top: 3px solid color-mix(in srgb, var(--border) 78%, transparent);
  border-right: 3px solid color-mix(in srgb, var(--border) 78%, transparent);
  transform: translateY(-50%) rotate(45deg);
  z-index: 0;
}

.seller-status-step-v24633:nth-child(3n+1)::after {
  display: none;
}

.seller-status-step-v24633.is-done::before {
  background: var(--status-color-start);
}

.seller-status-step-v24633.is-done::after {
  border-color: var(--status-color-start);
}

.seller-status-step-v24633.is-current::before {
  background: linear-gradient(90deg, var(--status-color-start), var(--status-color-current));
}

.seller-status-step-v24633.is-current::after {
  border-color: var(--status-color-current);
}

.seller-status-step-v24633.is-final-won:not(.is-future),
.seller-status-step-v24633.is-final-won:not(:disabled):hover {
  border-color: color-mix(in srgb, var(--status-color-won) 52%, var(--border));
}

.seller-status-step-v24633.is-final-lost:not(.is-future),
.seller-status-step-v24633.is-final-lost:not(:disabled):hover {
  border-color: color-mix(in srgb, var(--status-color-lost) 52%, var(--border));
}

.seller-status-step-v24633.is-final-archive:not(.is-future),
.seller-status-step-v24633.is-final-archive:not(:disabled):hover {
  border-color: color-mix(in srgb, var(--status-color-archive) 52%, var(--border));
}

.seller-status-step-v24633.is-final-won.is-current .seller-status-step-index-v24633 {
  background: var(--status-color-won);
  border-color: var(--status-color-won);
}

.seller-status-step-v24633.is-final-lost.is-current .seller-status-step-index-v24633 {
  background: var(--status-color-lost);
  border-color: var(--status-color-lost);
}

.seller-status-step-v24633.is-final-archive.is-current .seller-status-step-index-v24633 {
  background: var(--status-color-archive);
  border-color: var(--status-color-archive);
}

.seller-status-step-v24633.is-final-lost.is-current strong {
  color: var(--status-color-lost) !important;
}

.seller-status-step-v24633.is-final-archive.is-current strong {
  color: var(--status-color-archive) !important;
}

@media (max-width: 1100px) {
  .seller-status-flow-grid-v24633 {
    grid-template-columns: repeat(2, minmax(140px, 1fr)) !important;
  }

  .seller-status-step-v24633:nth-child(3n+1)::before,
  .seller-status-step-v24633:nth-child(3n+1)::after {
    display: block;
  }

  .seller-status-step-v24633:nth-child(2n+1)::before,
  .seller-status-step-v24633:nth-child(2n+1)::after {
    display: none;
  }
}

@media (max-width: 560px) {
  .seller-status-flow-grid-v24633 {
    grid-template-columns: 1fr !important;
  }

  .seller-status-step-v24633::before,
  .seller-status-step-v24633::after {
    display: none !important;
  }
}


/* V246.34 · Cierre unificado con menú desplegable.
   Se elimina 7/8/9 como finales separados. El flujo llega a un único paso 7: Cierre.
   Dentro de Cierre se selecciona Vendida, Cerrar sin venta o Archivar.
*/
.seller-status-flow-grid-v24634 {
  grid-template-columns: repeat(3, minmax(170px, 1fr)) !important;
}

.seller-status-closing-step-v24634 {
  min-height: 154px !important;
  align-items: start !important;
}

.seller-status-closing-step-v24634 .seller-status-step-text-v24634 {
  align-self: center;
}

.seller-status-closing-controls-v24634 {
  grid-column: 1 / -1;
  width: 100%;
  display: grid;
  gap: 8px;
  margin-top: 8px;
}

.seller-status-closing-controls-v24634 label {
  display: grid;
  gap: 4px;
  margin: 0;
}

.seller-status-closing-controls-v24634 label span {
  color: var(--text-soft);
  font-size: .70rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.seller-status-closing-controls-v24634 select {
  min-height: 34px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
  color: var(--heading);
  padding: 6px 9px;
  font-weight: 800;
  width: 100%;
}

.seller-status-final-apply-v24634 {
  width: 100%;
  justify-content: center;
  min-height: 34px;
}

.seller-status-step-v24634.is-final-closed_won,
.seller-status-step-v24634.is-final-closed_won.is-current {
  border-color: color-mix(in srgb, #16a34a 52%, var(--border)) !important;
}

.seller-status-step-v24634.is-final-closed_lost,
.seller-status-step-v24634.is-final-discarded,
.seller-status-step-v24634.is-final-closed_lost.is-current,
.seller-status-step-v24634.is-final-discarded.is-current {
  border-color: color-mix(in srgb, #b45309 52%, var(--border)) !important;
}

.seller-status-step-v24634.is-final-archived,
.seller-status-step-v24634.is-final-archived.is-current {
  border-color: color-mix(in srgb, #64748b 52%, var(--border)) !important;
}

.seller-status-step-v24634.is-final-closed_won .seller-status-step-index-v24634 {
  background: #16a34a !important;
  border-color: #16a34a !important;
  color: #fff !important;
}

.seller-status-step-v24634.is-final-closed_lost .seller-status-step-index-v24634,
.seller-status-step-v24634.is-final-discarded .seller-status-step-index-v24634 {
  background: #b45309 !important;
  border-color: #b45309 !important;
  color: #fff !important;
}

.seller-status-step-v24634.is-final-archived .seller-status-step-index-v24634 {
  background: #64748b !important;
  border-color: #64748b !important;
  color: #fff !important;
}

.seller-status-flow-v24634 .seller-form-helper {
  margin-top: 0;
}

@media (max-width: 1100px) {
  .seller-status-flow-grid-v24634 {
    grid-template-columns: repeat(2, minmax(160px, 1fr)) !important;
  }
}

@media (max-width: 560px) {
  .seller-status-flow-grid-v24634 {
    grid-template-columns: 1fr !important;
  }
}


/* V246.35 · Filtros inteligentes del cierre.
   Motivo solo aparece para Resultado = Cerrar sin venta.
   Vendida y Archivar no muestran ni permiten motivo.
*/
.seller-status-closing-controls-v24635 [hidden],
.seller-status-closing-controls-v24635 [aria-hidden="true"] {
  display: none !important;
}

.seller-status-closing-controls-v24635 label.is-visible {
  display: grid !important;
}

.seller-status-final-helper-v24635 {
  margin: 0;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 8px 10px;
  background: color-mix(in srgb, var(--surface-alt) 82%, transparent);
  color: var(--text-soft);
  font-size: .78rem;
  line-height: 1.35;
  font-weight: 700;
}

.seller-status-final-helper-v24635.is-won {
  border-color: color-mix(in srgb, #16a34a 34%, var(--border));
  background: color-mix(in srgb, #16a34a 8%, var(--surface));
  color: color-mix(in srgb, #166534 82%, var(--text));
}

.seller-status-final-helper-v24635.is-lost {
  border-color: color-mix(in srgb, #b45309 36%, var(--border));
  background: color-mix(in srgb, #b45309 8%, var(--surface));
  color: color-mix(in srgb, #92400e 82%, var(--text));
}

.seller-status-final-helper-v24635.is-archive {
  border-color: color-mix(in srgb, #64748b 38%, var(--border));
  background: color-mix(in srgb, #64748b 8%, var(--surface));
  color: color-mix(in srgb, #475569 82%, var(--text));
}

:root[data-theme="light"] .seller-status-final-helper-v24635.is-won,
body:not(.dark) .seller-status-final-helper-v24635.is-won {
  background: #f0fdf4;
}

:root[data-theme="light"] .seller-status-final-helper-v24635.is-lost,
body:not(.dark) .seller-status-final-helper-v24635.is-lost {
  background: #fff7ed;
}

:root[data-theme="light"] .seller-status-final-helper-v24635.is-archive,
body:not(.dark) .seller-status-final-helper-v24635.is-archive {
  background: #f8fafc;
}


/* V246.36 · Estado compacto en encabezado + Notas dentro de Seguimiento */
.seller-workspace-nav-integrated-v24636 {
  display: none !important;
}

.seller-workspace-detail-header-v24636 {
  gap: 14px;
}

.seller-workspace-detail-main-v24636 {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 14px;
}

.seller-compact-status-v24636 {
  border: 1px solid color-mix(in srgb, var(--accent) 22%, var(--border));
  border-radius: 18px;
  background: linear-gradient(135deg, color-mix(in srgb, var(--surface) 92%, var(--accent) 8%), var(--surface));
  padding: 12px;
  display: grid;
  gap: 9px;
}

.seller-compact-status-head-v24636 {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.seller-compact-status-head-v24636 div {
  display: grid;
  gap: 2px;
}

.seller-compact-status-head-v24636 span {
  color: var(--text-soft);
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  font-weight: 900;
}

.seller-compact-status-head-v24636 strong {
  color: var(--heading);
  font-size: .98rem;
}

.seller-compact-status-action-v24636 {
  white-space: nowrap;
  min-height: 34px;
}

.seller-compact-status-bar-v24636 {
  height: 7px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--border) 76%, transparent);
  overflow: hidden;
}

.seller-compact-status-bar-v24636 > span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #16a34a 0%, #0ea5e9 55%, var(--accent-strong) 100%);
}

.seller-compact-status-steps-v24636 {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 6px;
}

.seller-compact-status-steps-v24636 span {
  display: grid;
  gap: 4px;
  justify-items: center;
  align-items: start;
  text-align: center;
  color: var(--text-soft);
  font-size: .68rem;
  font-weight: 800;
}

.seller-compact-status-steps-v24636 i {
  width: 11px;
  height: 11px;
  border-radius: 999px;
  border: 2px solid var(--border);
  background: var(--surface);
}

.seller-compact-status-steps-v24636 .is-done i {
  background: #16a34a;
  border-color: #16a34a;
}

.seller-compact-status-steps-v24636 .is-current i {
  background: var(--accent-strong);
  border-color: var(--accent-strong);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 18%, transparent);
}

.seller-compact-status-steps-v24636 .is-current b {
  color: var(--accent-strong);
}

.seller-compact-status-v24636 p {
  margin: 0;
  color: var(--text-soft);
  font-size: .82rem;
  line-height: 1.35;
}

.seller-followup-notes-v24636 {
  border-color: color-mix(in srgb, var(--accent) 18%, var(--border));
}

@media (max-width: 860px) {
  .seller-workspace-detail-main-v24636,
  .seller-compact-status-head-v24636 {
    display: grid;
  }

  .seller-compact-status-steps-v24636 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}


/* V246.37 · Seguimiento con Nota interna dentro del mismo selector + Estado compacto con lógica completa expandible */
.seller-followup-planner.is-note-mode-v24637 [data-followup-datetime-field],
.seller-followup-planner.is-note-mode-v24637 [data-followup-title-field] {
  display: none !important;
}

.seller-followup-planner.is-note-mode-v24637 [data-followup-notes] {
  min-height: 132px;
}

.seller-compact-status-v24637 {
  position: relative;
}

.seller-compact-status-flow-detail-v24637 {
  margin-top: 12px;
  border-top: 1px solid var(--border);
  padding-top: 12px;
}

.seller-compact-status-flow-detail-v24637[hidden] {
  display: none !important;
}

.seller-compact-status-flow-detail-v24637 .seller-lead-pipeline-v24625 {
  background: color-mix(in srgb, var(--surface) 96%, var(--accent) 4%);
  border-radius: 16px;
}

.seller-compact-status-v24637.is-open-v24637 {
  border-color: color-mix(in srgb, var(--accent) 40%, var(--border));
  box-shadow: 0 14px 30px color-mix(in srgb, var(--accent) 10%, transparent);
}

.seller-compact-status-v24637.is-open-v24637 .seller-compact-status-action-v24636 {
  border-color: color-mix(in srgb, var(--accent) 46%, var(--border));
  background: color-mix(in srgb, var(--accent) 10%, var(--surface));
  color: var(--accent-strong);
}

@media (max-width: 860px) {
  .seller-compact-status-flow-detail-v24637 .seller-status-flow-grid-v24634,
  .seller-compact-status-flow-detail-v24637 .seller-status-flow-grid-v24635 {
    grid-template-columns: 1fr !important;
  }
}


/* V246.38 · Barra compacta llega al estado actual + botón más visible */
.seller-compact-status-v24637 .seller-compact-status-action-v24636,
.seller-compact-status-action-v24636 {
  border-color: color-mix(in srgb, var(--accent) 42%, var(--border)) !important;
  background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 18%, var(--surface)), var(--surface)) !important;
  color: var(--accent-strong) !important;
  font-weight: 900 !important;
  box-shadow: 0 10px 22px color-mix(in srgb, var(--accent) 12%, transparent);
}

.seller-compact-status-v24637 .seller-compact-status-action-v24636:hover,
.seller-compact-status-action-v24636:hover {
  transform: translateY(-1px);
  border-color: color-mix(in srgb, var(--accent) 62%, var(--border)) !important;
  box-shadow: 0 14px 30px color-mix(in srgb, var(--accent) 18%, transparent);
}

.seller-compact-status-bar-v24636 {
  background: color-mix(in srgb, var(--border) 68%, transparent) !important;
}

.seller-compact-status-bar-v24636 > span {
  min-width: 12px;
  background: linear-gradient(90deg, #16a34a 0%, #0ea5e9 58%, var(--accent-strong) 100%) !important;
}

:root[data-theme="light"] .seller-compact-status-v24637 .seller-compact-status-action-v24636,
body:not(.dark) .seller-compact-status-v24637 .seller-compact-status-action-v24636,
body:not(.dark) .seller-compact-status-action-v24636 {
  background: #fff7ed !important;
}


/* V246.39 · Limpieza de encabezado y contraste de Actualizar estado */
.seller-workspace-detail-header-v24639 .seller-workspace-detail-description {
  display: none !important;
}

.seller-workspace-detail-actions-v24639 {
  margin-top: 0;
}

.seller-workspace-detail-actions-v24639 .seller-workspace-actions-label {
  display: none;
}

.seller-compact-status-v24637 .seller-compact-status-action-v24636,
.seller-compact-status-action-v24636 {
  background: linear-gradient(135deg, var(--accent-strong), color-mix(in srgb, var(--accent-strong) 74%, #111827)) !important;
  border-color: color-mix(in srgb, var(--accent-strong) 76%, #ffffff) !important;
  color: #ffffff !important;
  font-weight: 900 !important;
  text-shadow: 0 1px 1px rgba(0,0,0,.22);
  box-shadow: 0 12px 26px color-mix(in srgb, var(--accent-strong) 22%, transparent) !important;
}

.seller-compact-status-v24637 .seller-compact-status-action-v24636:hover,
.seller-compact-status-action-v24636:hover {
  background: linear-gradient(135deg, color-mix(in srgb, var(--accent-strong) 92%, #ffffff), var(--accent-strong)) !important;
  color: #ffffff !important;
  transform: translateY(-1px);
}

.seller-compact-status-v24637.is-open-v24637 .seller-compact-status-action-v24636 {
  background: #111827 !important;
  color: #ffffff !important;
  border-color: color-mix(in srgb, var(--accent-strong) 68%, #ffffff) !important;
}

:root[data-theme="light"] .seller-compact-status-v24637 .seller-compact-status-action-v24636,
body:not(.dark) .seller-compact-status-v24637 .seller-compact-status-action-v24636,
body:not(.dark) .seller-compact-status-action-v24636 {
  background: linear-gradient(135deg, var(--accent-strong), color-mix(in srgb, var(--accent-strong) 78%, #1f2937)) !important;
  color: #ffffff !important;
}


/* V246.40 · Acciones limpias: chat contextual junto a cambiar cliente/inmueble */
.seller-context-actions-v24640 {
  display: none !important;
}

.seller-workspace-detail-actions-v24640 {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.seller-workspace-detail-actions-v24640 .seller-quick-action {
  min-height: 38px;
  font-weight: 900;
}

.seller-workspace-detail-actions-v24640 .seller-quick-action-primary {
  max-width: 100%;
  white-space: normal;
  text-align: left;
}

.seller-workspace-detail-actions-v24640 .seller-quick-action-secondary {
  white-space: nowrap;
}

@media (max-width: 720px) {
  .seller-workspace-detail-actions-v24640 {
    display: grid;
    grid-template-columns: 1fr;
  }

  .seller-workspace-detail-actions-v24640 .seller-quick-action {
    width: 100%;
    justify-content: center;
  }
}


/* V246.41 · Helpers profesionales para botones */
.seller-button-helper-tooltip-v24641 {
  position: absolute;
  z-index: 99999;
  max-width: min(320px, calc(100vw - 24px));
  padding: 9px 11px;
  border-radius: 12px;
  background: #111827;
  color: #ffffff;
  font-size: .78rem;
  line-height: 1.35;
  font-weight: 750;
  box-shadow: 0 18px 38px rgba(15, 23, 42, .28);
  pointer-events: none;
  border: 1px solid rgba(255, 255, 255, .14);
}

.seller-button-helper-tooltip-v24641[hidden] {
  display: none !important;
}

:root[data-theme="light"] .seller-button-helper-tooltip-v24641,
body:not(.dark) .seller-button-helper-tooltip-v24641 {
  background: #111827;
  color: #ffffff;
}


/* V246.42 · Protección estricta de contacto hasta visita agendada */
.seller-workspace-detail-meta-v24642 .seller-contact-protected-chip-v24642 {
  border-color: color-mix(in srgb, #b45309 36%, var(--border));
  background: color-mix(in srgb, #b45309 8%, var(--surface));
  color: color-mix(in srgb, #92400e 82%, var(--text));
  font-weight: 900;
}

.is-protected-contact-v24642 strong {
  color: color-mix(in srgb, #92400e 82%, var(--heading));
}

:root[data-theme="light"] .seller-workspace-detail-meta-v24642 .seller-contact-protected-chip-v24642,
body:not(.dark) .seller-workspace-detail-meta-v24642 .seller-contact-protected-chip-v24642 {
  background: #fff7ed;
  color: #92400e;
}

body.dark .seller-workspace-detail-meta-v24642 .seller-contact-protected-chip-v24642,
:root[data-theme="dark"] .seller-workspace-detail-meta-v24642 .seller-contact-protected-chip-v24642 {
  background: rgba(180, 83, 9, .14);
  color: #fed7aa;
}


/* V246.43 · Tooltip único y botón Actualizar estado estilo Chat */
.seller-compact-status-v24637 .seller-compact-status-action-v24636,
.seller-compact-status-action-v24636 {
  background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 76%, #ffffff), var(--accent-strong)) !important;
  border: 1px solid color-mix(in srgb, var(--accent) 50%, var(--border)) !important;
  color: #ffffff !important;
  font-weight: 900 !important;
  text-shadow: 0 1px 1px rgba(0, 0, 0, .22) !important;
  box-shadow: 0 12px 24px color-mix(in srgb, var(--accent-strong) 18%, transparent) !important;
}

.seller-compact-status-v24637 .seller-compact-status-action-v24636:hover,
.seller-compact-status-action-v24636:hover {
  background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 86%, #ffffff), color-mix(in srgb, var(--accent-strong) 94%, #000000)) !important;
  color: #ffffff !important;
  transform: translateY(-1px);
  box-shadow: 0 15px 30px color-mix(in srgb, var(--accent-strong) 22%, transparent) !important;
}

.seller-compact-status-v24637.is-open-v24637 .seller-compact-status-action-v24636 {
  background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 72%, #ffffff), var(--accent-strong)) !important;
  color: #ffffff !important;
  border-color: color-mix(in srgb, var(--accent) 56%, var(--border)) !important;
}

:root[data-theme="light"] .seller-compact-status-v24637 .seller-compact-status-action-v24636,
body:not(.dark) .seller-compact-status-v24637 .seller-compact-status-action-v24636,
body:not(.dark) .seller-compact-status-action-v24636 {
  background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 76%, #ffffff), var(--accent-strong)) !important;
  color: #ffffff !important;
}

.seller-button-helper-tooltip-v24641 {
  max-width: min(300px, calc(100vw - 24px));
}


/* V246.45 · Mover datos/contacto protegido al final de Chat */
.seller-chat-contact-bottom-v24645 {
  margin-top: 16px;
}

.seller-chat-contact-bottom-v24645 .seller-contact-strip {
  margin-top: 10px;
}


/* V246.46 · Referencia discreta de inmueble y estado en línea en Chat */
.seller-chat-property-ref-v24646 {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
  margin: 6px 0 7px;
  color: var(--text-soft);
  font-size: .78rem;
  line-height: 1.25;
}

.seller-chat-property-chip-v24646,
.seller-chat-presence-v24646 {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border: 1px solid color-mix(in srgb, var(--border) 82%, transparent);
  border-radius: 999px;
  padding: 4px 8px;
  background: color-mix(in srgb, var(--surface) 86%, transparent);
  color: var(--text-soft);
  max-width: min(100%, 520px);
}

.seller-chat-property-chip-v24646 b {
  color: var(--heading);
  font-size: .68rem;
  text-transform: uppercase;
  letter-spacing: .06em;
}

.seller-chat-property-chip-v24646.is-wide {
  border-radius: 12px;
}

.seller-chat-presence-v24646 {
  font-weight: 850;
}

.seller-chat-presence-v24646 i {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #94a3b8;
  box-shadow: 0 0 0 3px color-mix(in srgb, #94a3b8 18%, transparent);
}

.seller-chat-presence-v24646.is-online {
  color: #15803d;
  border-color: color-mix(in srgb, #22c55e 35%, var(--border));
  background: color-mix(in srgb, #22c55e 8%, var(--surface));
}

.seller-chat-presence-v24646.is-online i {
  background: #22c55e;
  box-shadow: 0 0 0 3px color-mix(in srgb, #22c55e 20%, transparent);
}

.seller-chat-presence-v24646.is-offline {
  color: #64748b;
}

.seller-chat-presence-v24646.is-unknown {
  color: var(--text-soft);
}

body.dark .seller-chat-presence-v24646.is-online,
:root[data-theme="dark"] .seller-chat-presence-v24646.is-online {
  color: #bbf7d0;
}

@media (max-width: 720px) {
  .seller-chat-property-ref-v24646 {
    display: grid;
    grid-template-columns: 1fr;
  }

  .seller-chat-property-chip-v24646,
  .seller-chat-presence-v24646 {
    width: 100%;
    justify-content: flex-start;
    border-radius: 12px;
  }
}


/* V246.47 · Referencia de inmueble compacta en una sola línea */
.seller-chat-property-ref-v24647 {
  display: flex !important;
  flex-wrap: nowrap !important;
  align-items: center !important;
  gap: 6px !important;
  margin: 6px 0 8px !important;
  max-width: 100%;
  overflow: hidden;
}

.seller-chat-property-ref-v24647 > * + *::before {
  content: "";
  display: none;
}

.seller-chat-property-chip-v24647,
.seller-chat-presence-v24647 {
  min-height: 24px;
  padding: 3px 7px !important;
  border-radius: 999px !important;
  line-height: 1.1 !important;
  white-space: nowrap;
  flex: 0 0 auto;
  gap: 5px !important;
}

.seller-chat-property-chip-v24647 b {
  font-size: .62rem !important;
  letter-spacing: .05em !important;
  text-transform: uppercase;
  color: var(--text-soft) !important;
}

.seller-chat-property-chip-v24647 em {
  font-style: normal;
  color: var(--heading);
  font-size: .74rem;
  font-weight: 800;
}

.seller-chat-property-chip-v24647.is-location {
  flex: 1 1 auto;
  min-width: 120px;
  max-width: 100%;
  overflow: hidden;
  border-radius: 999px !important;
}

.seller-chat-property-chip-v24647.is-location em {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.seller-chat-presence-v24647 {
  font-size: .74rem !important;
  font-weight: 900 !important;
  text-transform: none;
  flex: 0 0 auto;
}

.seller-chat-presence-v24647 i {
  width: 8px !important;
  height: 8px !important;
  box-shadow: none !important;
}

.seller-chat-presence-v24647.is-online i {
  background: #22c55e !important;
  border: 1px solid #16a34a;
}

.seller-chat-presence-v24647.is-offline i,
.seller-chat-presence-v24647.is-unknown i {
  background: #ef4444 !important;
  border: 1px solid #dc2626;
}

.seller-chat-presence-v24647.is-offline,
.seller-chat-presence-v24647.is-unknown {
  color: #991b1b !important;
  border-color: color-mix(in srgb, #ef4444 32%, var(--border)) !important;
  background: color-mix(in srgb, #ef4444 7%, var(--surface)) !important;
}

body.dark .seller-chat-presence-v24647.is-offline,
:root[data-theme="dark"] .seller-chat-presence-v24647.is-offline,
body.dark .seller-chat-presence-v24647.is-unknown,
:root[data-theme="dark"] .seller-chat-presence-v24647.is-unknown {
  color: #fecaca !important;
  background: rgba(239, 68, 68, .12) !important;
}

@media (max-width: 760px) {
  .seller-chat-property-ref-v24647 {
    display: grid !important;
    grid-template-columns: auto 1fr auto;
    gap: 5px !important;
  }

  .seller-chat-property-chip-v24647,
  .seller-chat-presence-v24647 {
    width: auto !important;
    min-width: 0;
  }

  .seller-chat-property-chip-v24647.is-location {
    min-width: 0;
  }
}

@media (max-width: 460px) {
  .seller-chat-property-ref-v24647 {
    grid-template-columns: 1fr;
  }

  .seller-chat-property-chip-v24647,
  .seller-chat-presence-v24647 {
    width: 100% !important;
    justify-content: flex-start;
  }
}


/* V246.49 · Reemplazo de ficha de inmueble por acciones de seguimiento en Chat */
.seller-chat-followup-actions-v24649 {
  margin-top: 14px;
  border: 1px solid color-mix(in srgb, var(--accent) 18%, var(--border));
  border-radius: 18px;
  background: color-mix(in srgb, var(--surface) 94%, var(--accent) 6%);
  padding: 13px;
  display: grid;
  gap: 10px;
}

.seller-chat-followup-actions-head-v24649 {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.seller-chat-followup-actions-head-v24649 h3 {
  margin: 2px 0 0;
  color: var(--heading);
  font-size: .98rem;
}

.seller-chat-followup-actions-head-v24649 > span {
  color: var(--text-soft);
  font-size: .76rem;
  font-weight: 800;
  text-align: right;
}

.seller-chat-followup-actions-grid-v24649 {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto;
  gap: 10px;
  align-items: end;
}

.seller-chat-followup-select-wrap-v24649 {
  display: grid;
  gap: 5px;
  margin: 0;
}

.seller-chat-followup-select-wrap-v24649 > span {
  color: var(--text-soft);
  font-size: .70rem;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.seller-chat-followup-select-wrap-v24649 select {
  min-height: 38px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  color: var(--heading);
  padding: 7px 12px;
  font-weight: 850;
  width: 100%;
}

.seller-chat-visit-action-v24649 {
  min-height: 38px;
  white-space: nowrap;
  font-weight: 900;
  border-radius: 999px;
}

.seller-chat-visit-action-v24649:disabled {
  opacity: .58;
  cursor: not-allowed;
  filter: grayscale(.15);
}

.seller-chat-followup-actions-v24649 .seller-form-helper {
  margin: 0;
  color: var(--text-soft);
}

@media (max-width: 720px) {
  .seller-chat-followup-actions-head-v24649 {
    display: grid;
  }

  .seller-chat-followup-actions-head-v24649 > span {
    text-align: left;
  }

  .seller-chat-followup-actions-grid-v24649 {
    grid-template-columns: 1fr;
  }

  .seller-chat-visit-action-v24649 {
    width: 100%;
    justify-content: center;
  }
}


/* V246.50 · Llegada desde Chat directo al formulario de Nuevo seguimiento */
[data-followup-panel-content].is-chat-followup-arrival-v24650 > .seller-context-selector-card {
  display: none !important;
}

[data-followup-panel-content].is-chat-followup-arrival-v24650 [data-followup-section] {
  border-color: color-mix(in srgb, var(--accent) 34%, var(--border));
  box-shadow: 0 16px 34px color-mix(in srgb, var(--accent) 10%, transparent);
}


/* V246.51 · Barra de estado compacta y expandible dentro del Chat */
.seller-chat-status-compact-v24651 {
  position: relative;
  margin: 7px 0 8px;
  padding: 8px 9px;
  border: 1px solid color-mix(in srgb, var(--accent) 18%, var(--border));
  border-radius: 16px;
  background: color-mix(in srgb, var(--surface) 94%, var(--accent) 6%);
  z-index: 8;
}

.seller-chat-status-main-v24651 {
  display: grid;
  grid-template-columns: auto minmax(160px, 1fr) auto;
  gap: 10px;
  align-items: center;
}

.seller-chat-status-label-v24651 {
  display: grid;
  gap: 1px;
  min-width: 92px;
}

.seller-chat-status-label-v24651 span {
  color: var(--text-soft);
  font-size: .62rem;
  line-height: 1;
  letter-spacing: .08em;
  text-transform: uppercase;
  font-weight: 900;
}

.seller-chat-status-label-v24651 strong {
  color: var(--heading);
  font-size: .82rem;
  line-height: 1.1;
}

.seller-chat-status-track-v24651 {
  position: relative;
  height: 18px;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  align-items: center;
  isolation: isolate;
}

.seller-chat-status-track-v24651::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 4px;
  transform: translateY(-50%);
  border-radius: 999px;
  background: color-mix(in srgb, var(--border) 72%, transparent);
  z-index: 0;
}

.seller-chat-status-track-v24651 > span {
  position: absolute;
  left: 0;
  top: 50%;
  height: 4px;
  transform: translateY(-50%);
  border-radius: 999px;
  background: linear-gradient(90deg, #16a34a 0%, #0ea5e9 58%, var(--accent-strong) 100%);
  z-index: 1;
}

.seller-chat-status-track-v24651 i {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  justify-self: center;
  background: var(--surface);
  border: 1px solid var(--border);
  z-index: 2;
}

.seller-chat-status-track-v24651 i.is-done {
  background: #16a34a;
  border-color: #16a34a;
}

.seller-chat-status-track-v24651 i.is-current {
  background: var(--accent-strong);
  border-color: var(--accent-strong);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 18%, transparent);
}

.seller-chat-status-update-v24651 {
  min-height: 30px;
  padding: 6px 11px;
  border-radius: 999px;
  white-space: nowrap;
  font-size: .78rem;
  font-weight: 900;
  box-shadow: 0 10px 20px color-mix(in srgb, var(--accent-strong) 14%, transparent);
}

.seller-chat-status-popover-v24651 {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 8px);
  z-index: 40;
  max-height: min(72vh, 620px);
  overflow: auto;
  padding: 10px;
  border: 1px solid color-mix(in srgb, var(--accent) 28%, var(--border));
  border-radius: 18px;
  background: var(--surface);
  box-shadow: 0 24px 60px rgba(15, 23, 42, .22);
}

.seller-chat-status-popover-v24651[hidden] {
  display: none !important;
}

.seller-chat-status-popover-v24651 .seller-lead-pipeline-v24625 {
  margin: 0;
}

.seller-chat-status-popover-v24651 .seller-status-flow-head-v24632 h3 {
  font-size: .98rem;
}

.seller-chat-status-popover-v24651 .seller-status-flow-grid-v24634,
.seller-chat-status-popover-v24651 .seller-status-flow-grid-v24635 {
  grid-template-columns: repeat(2, minmax(150px, 1fr)) !important;
}

.seller-chat-status-popover-v24651 .seller-status-step-v24632 {
  min-height: 66px;
}

.seller-chat-status-compact-v24651.is-open-v24651 {
  border-color: color-mix(in srgb, var(--accent) 42%, var(--border));
  box-shadow: 0 12px 28px color-mix(in srgb, var(--accent) 10%, transparent);
}

@media (max-width: 760px) {
  .seller-chat-status-main-v24651 {
    grid-template-columns: 1fr auto;
  }

  .seller-chat-status-track-v24651 {
    grid-column: 1 / -1;
    order: 3;
  }

  .seller-chat-status-update-v24651 {
    justify-self: end;
  }

  .seller-chat-status-popover-v24651 .seller-status-flow-grid-v24634,
  .seller-chat-status-popover-v24651 .seller-status-flow-grid-v24635 {
    grid-template-columns: 1fr !important;
  }
}


/* V246.52 · Mejor contraste de barra Chat y presencia junto al nombre */
.seller-chat-title-with-presence-v24652 {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.seller-chat-title-with-presence-v24652 > span {
  min-width: 0;
}

.seller-chat-name-presence-v24652 {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 3px 8px;
  font-size: .72rem;
  line-height: 1;
  font-weight: 900;
  color: var(--text-soft);
  background: var(--surface);
  vertical-align: middle;
}

.seller-chat-name-presence-v24652 i {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #ef4444;
}

.seller-chat-name-presence-v24652.is-online {
  color: #166534;
  border-color: color-mix(in srgb, #22c55e 40%, var(--border));
  background: #f0fdf4;
}

.seller-chat-name-presence-v24652.is-online i {
  background: #22c55e;
  box-shadow: 0 0 0 3px rgba(34, 197, 94, .16);
}

.seller-chat-name-presence-v24652.is-offline,
.seller-chat-name-presence-v24652.is-unknown {
  color: #991b1b;
  border-color: color-mix(in srgb, #ef4444 36%, var(--border));
  background: #fef2f2;
}

.seller-chat-name-presence-v24652.is-offline i,
.seller-chat-name-presence-v24652.is-unknown i {
  background: #ef4444;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, .14);
}

/* La presencia ya pertenece al comprador, no a la referencia de inmueble. */
.seller-chat-property-ref-v24647 .seller-chat-presence-v24647 {
  display: none !important;
}

/* Mejor contraste en modo claro para la mini barra del estado del chat. */
.seller-chat-status-compact-v24651 {
  background: #ffffff !important;
  border-color: color-mix(in srgb, var(--accent) 30%, var(--border)) !important;
}

.seller-chat-status-label-v24651 span {
  color: #64748b !important;
}

.seller-chat-status-label-v24651 strong {
  color: #111827 !important;
}

.seller-chat-status-track-v24651::before {
  background: #d6d3cc !important;
  height: 5px !important;
}

.seller-chat-status-track-v24651 > span {
  height: 5px !important;
  background: linear-gradient(90deg, #16a34a 0%, #0891b2 55%, #8b5e34 100%) !important;
}

.seller-chat-status-track-v24651 i {
  width: 11px !important;
  height: 11px !important;
  background: #ffffff !important;
  border: 2px solid #cbd5e1 !important;
}

.seller-chat-status-track-v24651 i.is-done {
  background: #16a34a !important;
  border-color: #16a34a !important;
}

.seller-chat-status-track-v24651 i.is-current {
  background: #8b5e34 !important;
  border-color: #8b5e34 !important;
  box-shadow: 0 0 0 4px rgba(139, 94, 52, .20) !important;
}

.seller-chat-status-update-v24651 {
  background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 76%, #ffffff), var(--accent-strong)) !important;
  color: #ffffff !important;
  border-color: color-mix(in srgb, var(--accent) 46%, var(--border)) !important;
}

/* El tooltip propio debe ser legible y no competir con el modo claro. */
.seller-button-helper-tooltip-v24641 {
  background: #111827 !important;
  color: #ffffff !important;
  border-color: rgba(255, 255, 255, .16) !important;
  box-shadow: 0 18px 38px rgba(15, 23, 42, .30) !important;
}

body.dark .seller-chat-status-compact-v24651,
:root[data-theme="dark"] .seller-chat-status-compact-v24651 {
  background: color-mix(in srgb, var(--surface) 94%, var(--accent) 6%) !important;
}

body.dark .seller-chat-status-label-v24651 span,
:root[data-theme="dark"] .seller-chat-status-label-v24651 span {
  color: var(--text-soft) !important;
}

body.dark .seller-chat-status-label-v24651 strong,
:root[data-theme="dark"] .seller-chat-status-label-v24651 strong {
  color: var(--heading) !important;
}

body.dark .seller-chat-name-presence-v24652.is-online,
:root[data-theme="dark"] .seller-chat-name-presence-v24652.is-online {
  color: #bbf7d0;
  background: rgba(34, 197, 94, .12);
}

body.dark .seller-chat-name-presence-v24652.is-offline,
body.dark .seller-chat-name-presence-v24652.is-unknown,
:root[data-theme="dark"] .seller-chat-name-presence-v24652.is-offline,
:root[data-theme="dark"] .seller-chat-name-presence-v24652.is-unknown {
  color: #fecaca;
  background: rgba(239, 68, 68, .12);
}


/* V246.54 · Helpers de progreso en la barra de estado del Chat */
.seller-chat-status-track-v24651,
.seller-chat-status-track-v24651 i,
.seller-chat-status-label-v24651[data-status-helper] {
  cursor: help;
}

.seller-chat-status-track-v24651 i:hover {
  transform: scale(1.12);
}

.seller-chat-status-track-v24651 i.is-current:hover {
  box-shadow: 0 0 0 5px rgba(139, 94, 52, .24) !important;
}


/* V246.55 · Contacto seguro: no mostrar números ni emails reales entre las partes */
.seller-secure-contact-card-v24655 strong {
  color: var(--heading);
}

.seller-secure-contact-actions-v24655 {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 9px;
}

.seller-secure-contact-btn-v24655 {
  border: 1px solid var(--border);
  border-radius: 999px;
  min-height: 32px;
  padding: 6px 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  white-space: nowrap;
  line-height: 1.1;
  background: var(--surface);
  color: var(--heading);
  font-weight: 900;
  font-size: .78rem;
  cursor: pointer;
}

.seller-secure-contact-btn-v24655:disabled {
  opacity: .55;
  cursor: not-allowed;
  filter: grayscale(.1);
}

.seller-secure-contact-btn-v24655.is-call {
  border-color: color-mix(in srgb, #0ea5e9 38%, var(--border));
  background: color-mix(in srgb, #0ea5e9 8%, var(--surface));
}

.seller-secure-contact-btn-v24655.is-carrier,
.seller-secure-contact-btn-v24655.is-phone-call {
  border-color: color-mix(in srgb, #0ea5e9 46%, var(--border));
  background: color-mix(in srgb, #0ea5e9 10%, var(--surface));
  color: var(--heading);
}

.seller-secure-contact-btn-v24655.is-email {
  border-color: color-mix(in srgb, #6366f1 36%, var(--border));
  background: color-mix(in srgb, #6366f1 8%, var(--surface));
}

.seller-secure-contact-btn-v24655.is-whatsapp {
  border-color: color-mix(in srgb, #25D366 52%, var(--border));
  background: #25D366;
  color: #ffffff;
}

.seller-whatsapp-icon-v24655 {
  display: inline-grid;
  place-items: center;
  width: 18px;
  height: 18px;
  border-radius: 999px;
  background: rgba(255,255,255,.22);
  color: #ffffff;
  font-weight: 950;
}

body.dark .seller-secure-contact-btn-v24655.is-whatsapp,
:root[data-theme="dark"] .seller-secure-contact-btn-v24655.is-whatsapp {
  background: #128C7E;
  border-color: #25D366;
  color: #ffffff;
}


/* V246.56 · Limpieza de contacto seguro y WhatsApp consistente */
.seller-secure-contact-card-v24656 small {
  display: none !important;
}

.seller-secure-contact-card-v24656 strong {
  margin-bottom: 2px;
}

.seller-secure-contact-actions-v24656 {
  margin-top: 8px;
}

.seller-secure-contact-btn-v24656.is-phone-call {
  border-color: color-mix(in srgb, #0ea5e9 42%, var(--border));
  background: color-mix(in srgb, #0ea5e9 10%, var(--surface));
}

.seller-secure-contact-btn-v24656.is-call {
  border-color: color-mix(in srgb, #8b5e34 38%, var(--border));
  background: color-mix(in srgb, #8b5e34 8%, var(--surface));
}

.seller-chat-contact-bottom-v24645 .seller-contact-strip {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.seller-whatsapp-continue-v24656 {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-color: #25D366 !important;
  background: #25D366 !important;
  color: #ffffff !important;
  font-weight: 900 !important;
  box-shadow: 0 12px 28px rgba(37, 211, 102, .25) !important;
}

.seller-whatsapp-continue-v24656:hover {
  background: #1ebe5d !important;
  border-color: #1ebe5d !important;
  color: #ffffff !important;
}

.seller-whatsapp-continue-v24656::before {
  content: none !important;
  display: none !important;
}

.seller-whatsapp-glyph-v24656 {
  width: 18px;
  height: 18px;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  background: rgba(255,255,255,.22);
  color: #ffffff;
  font-size: 12px;
  line-height: 1;
  font-weight: 950;
}

.seller-whatsapp-continue-v24656.is-disabled {
  background: color-mix(in srgb, #25D366 22%, var(--surface)) !important;
  color: var(--text-soft) !important;
  border-color: color-mix(in srgb, #25D366 40%, var(--border)) !important;
  box-shadow: none !important;
}

@media (max-width: 640px) {
  .seller-chat-contact-bottom-v24645 .seller-contact-strip {
    grid-template-columns: 1fr;
  }
}


/* V247.00 · Icono real WhatsApp adjunto por usuario */
.seller-whatsapp-glyph-v24656 {
  overflow: hidden;
  background: rgba(255, 255, 255, .96);
  border: 1px solid rgba(255, 255, 255, .72);
}

.seller-whatsapp-glyph-v24656 img {
  width: 18px;
  height: 18px;
  display: block;
  object-fit: contain;
}

/* V247.01 · WhatsApp real visible: icono inline sin depender de ruta de imagen/cache */
.seller-whatsapp-glyph-v24701 {
  width: 22px;
  height: 22px;
  padding: 0;
  overflow: visible;
  background: transparent !important;
  border: 0 !important;
  flex: 0 0 auto;
}

.seller-whatsapp-svg-v24701,
.seller-whatsapp-glyph-v24701 svg {
  width: 22px;
  height: 22px;
  display: block;
  filter: drop-shadow(0 1px 1px rgba(0,0,0,.16));
}


/* V247.02 · Acciones del hero de Leads y WhatsApp realmente visible */
.seller-leads-hero {
  grid-template-columns: minmax(0, 1fr) auto !important;
  align-items: center !important;
}

.seller-leads-hero-actions-v24702 {
  display: inline-flex;
  justify-content: flex-end;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  align-self: center;
  min-width: max-content;
}

.seller-leads-hero-actions-v24702 .btn {
  min-height: 42px;
  white-space: nowrap;
  font-weight: 900;
}

.seller-whatsapp-continue-v24656 {
  gap: 9px !important;
  padding-left: 14px !important;
}

.seller-whatsapp-glyph-v24701 {
  width: 24px !important;
  height: 24px !important;
  display: inline-grid !important;
  place-items: center !important;
  color: #ffffff !important;
  background: transparent !important;
  border: 0 !important;
  border-radius: 999px !important;
  flex: 0 0 24px !important;
  overflow: visible !important;
}

.seller-whatsapp-svg-v24701,
.seller-whatsapp-glyph-v24701 svg {
  width: 22px !important;
  height: 22px !important;
  display: block !important;
  color: #ffffff !important;
  fill: currentColor !important;
  filter: drop-shadow(0 1px 1px rgba(0,0,0,.22)) !important;
}

.seller-whatsapp-svg-v24701 path,
.seller-whatsapp-glyph-v24701 svg path {
  fill: currentColor !important;
}

@media (max-width: 760px) {
  .seller-leads-hero {
    grid-template-columns: 1fr !important;
  }

  .seller-leads-hero-actions-v24702 {
    width: 100%;
    justify-content: flex-start;
  }
}

/* V247.07 · Llamada interna dentro del chat */
.seller-chat-action-row-v24707 {
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.seller-chat-internal-call-v24707 {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 900;
  border-color: color-mix(in srgb, var(--accent) 28%, var(--border) 72%) !important;
}

.seller-chat-internal-call-v24707 span[aria-hidden='true'] {
  width: 22px;
  height: 22px;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  background: color-mix(in srgb, var(--accent) 16%, transparent);
}

.seller-internal-call-overlay-v24707 {
  position: fixed;
  inset: 0;
  z-index: 9998;
  display: grid;
  place-items: center;
  padding: 22px;
  background: rgba(15, 23, 42, .42);
  backdrop-filter: blur(6px);
}

.seller-internal-call-modal-v24707 {
  position: relative;
  width: min(420px, 94vw);
  border-radius: 28px;
  padding: 30px 24px 26px;
  text-align: center;
  background: color-mix(in srgb, var(--surface) 96%, white 4%);
  color: var(--text);
  border: 1px solid color-mix(in srgb, var(--border) 78%, var(--accent) 22%);
  box-shadow: 0 28px 80px rgba(15, 23, 42, .32);
}

.seller-internal-call-close-v24707 {
  position: absolute;
  top: 12px;
  right: 14px;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 999px;
  background: color-mix(in srgb, var(--surface-soft) 82%, transparent);
  color: var(--text);
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}

.seller-internal-call-avatar-v24707 {
  position: relative;
  width: 110px;
  height: 110px;
  margin: 4px auto 18px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: linear-gradient(135deg, #16a34a, #22c55e);
  color: white;
  font-size: 44px;
  box-shadow: 0 18px 45px rgba(34, 197, 94, .34);
}

.seller-internal-call-avatar-v24707 i {
  position: absolute;
  inset: -8px;
  border: 2px solid rgba(34, 197, 94, .42);
  border-radius: 999px;
  animation: sellerCallRingV24707 1.65s ease-out infinite;
}

.seller-internal-call-avatar-v24707 i:nth-child(3) { animation-delay: .35s; }
.seller-internal-call-avatar-v24707 i:nth-child(4) { animation-delay: .72s; }

.seller-internal-call-overlay-v24707.is-done .seller-internal-call-avatar-v24707 {
  background: linear-gradient(135deg, #2563eb, #38bdf8);
  box-shadow: 0 18px 45px rgba(37, 99, 235, .28);
}

.seller-internal-call-overlay-v24707.is-error .seller-internal-call-avatar-v24707 {
  background: linear-gradient(135deg, #b91c1c, #ef4444);
  box-shadow: 0 18px 45px rgba(239, 68, 68, .25);
}

.seller-internal-call-overlay-v24707.is-done .seller-internal-call-avatar-v24707 i,
.seller-internal-call-overlay-v24707.is-error .seller-internal-call-avatar-v24707 i {
  display: none;
}

.seller-internal-call-copy-v24707 h3 {
  margin: 4px 0 8px;
  font-size: clamp(1.35rem, 2.5vw, 1.75rem);
}

.seller-internal-call-copy-v24707 p {
  margin: 0 auto 12px;
  max-width: 34ch;
  color: var(--text-soft);
}

.seller-internal-call-copy-v24707 small {
  display: inline-flex;
  padding: 6px 12px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--accent) 10%, transparent);
  font-weight: 900;
}

.seller-internal-call-card-v24707 {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  padding: 14px;
  border-radius: 18px;
  background: color-mix(in srgb, #eff6ff 80%, var(--surface) 20%);
  border: 1px solid color-mix(in srgb, #2563eb 20%, var(--border) 80%);
}

:root[data-theme='dark'] .seller-internal-call-card-v24707,
body.dark .seller-internal-call-card-v24707 {
  background: color-mix(in srgb, #172554 36%, var(--surface) 64%);
  border-color: color-mix(in srgb, #60a5fa 26%, var(--border) 74%);
}

.seller-internal-call-card-v24707 strong,
.seller-internal-call-card-v24707 p,
.seller-internal-call-card-v24707 small {
  display: block;
  margin: 0;
}

.seller-internal-call-card-v24707 p {
  margin-top: 4px;
  color: var(--text);
}

.seller-internal-call-card-v24707 small {
  margin-top: 7px;
  color: var(--text-soft);
  font-weight: 800;
}

.seller-internal-call-pulse-v24707 {
  position: relative;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: #2563eb;
  color: white;
  box-shadow: 0 0 0 0 rgba(37, 99, 235, .42);
  animation: sellerCallPulseV24707 1.8s ease-out infinite;
}

@keyframes sellerCallRingV24707 {
  0% { transform: scale(.76); opacity: .72; }
  100% { transform: scale(1.42); opacity: 0; }
}

@keyframes sellerCallPulseV24707 {
  0% { box-shadow: 0 0 0 0 rgba(37, 99, 235, .42); }
  70% { box-shadow: 0 0 0 11px rgba(37, 99, 235, 0); }
  100% { box-shadow: 0 0 0 0 rgba(37, 99, 235, 0); }
}

@media (max-width: 760px) {
  .seller-chat-action-row-v24707 .btn {
    width: 100%;
  }
}

/* V247.08 - experiencia visual de llamada interna: 10 timbres, colgar, onda de voz local */
.seller-internal-call-overlay-v24708 .seller-internal-call-modal-v24708 {
  width: min(460px, 94vw);
  padding-bottom: 28px;
}

.seller-internal-call-overlay-v24708.is-ringing .seller-internal-call-avatar-v24708 {
  animation: sellerInternalCallAvatarBreathV24708 1.1s ease-in-out infinite;
}

.seller-internal-call-overlay-v24708.is-hung-up .seller-internal-call-avatar-v24708,
.seller-internal-call-overlay-v24708.is-missed .seller-internal-call-avatar-v24708 {
  background: linear-gradient(135deg, #dc2626, #f97316);
  box-shadow: 0 18px 45px rgba(220, 38, 38, .28);
}

.seller-call-wave-v24708 {
  min-height: 58px;
  margin: 18px auto 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 10px 12px;
  border-radius: 18px;
  background: color-mix(in srgb, var(--accent) 8%, var(--surface-soft) 92%);
  border: 1px solid color-mix(in srgb, var(--accent) 16%, var(--border) 84%);
}

.seller-call-wave-v24708 i {
  width: 4px;
  height: 12px;
  border-radius: 999px;
  background: linear-gradient(180deg, #22c55e, #2563eb);
  transition: height .08s linear;
  opacity: .88;
}

.seller-internal-call-overlay-v24708:not(.is-ringing) .seller-call-wave-v24708 i {
  background: color-mix(in srgb, var(--text-soft) 55%, transparent);
  animation: sellerCallWaveIdleV24708 1.2s ease-in-out infinite;
}

.seller-internal-call-overlay-v24708:not(.is-ringing) .seller-call-wave-v24708 i:nth-child(2n) { animation-delay: .1s; }
.seller-internal-call-overlay-v24708:not(.is-ringing) .seller-call-wave-v24708 i:nth-child(3n) { animation-delay: .2s; }
.seller-internal-call-overlay-v24708:not(.is-ringing) .seller-call-wave-v24708 i:nth-child(4n) { animation-delay: .3s; }

.seller-internal-call-ring-count-v24708 {
  margin: 8px auto 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 7px 12px;
  border-radius: 999px;
  background: color-mix(in srgb, #f59e0b 12%, var(--surface) 88%);
  border: 1px solid color-mix(in srgb, #f59e0b 28%, var(--border) 72%);
  color: var(--text);
  font-size: .82rem;
  font-weight: 900;
}

.seller-internal-call-actions-v24708 {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 4px;
}

.seller-call-hangup-v24708 {
  min-width: 150px;
  border: 0;
  border-radius: 999px;
  padding: 12px 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: linear-gradient(135deg, #dc2626, #ef4444);
  color: #fff;
  font-weight: 950;
  cursor: pointer;
  box-shadow: 0 16px 34px rgba(220, 38, 38, .26);
}

.seller-call-hangup-v24708:disabled {
  cursor: not-allowed;
  opacity: .55;
  box-shadow: none;
}

.seller-internal-call-card-v24707.is-call-missed,
.seller-thread-item-v243.is-call-missed .seller-internal-call-card-v24707 {
  background: color-mix(in srgb, #fef2f2 82%, var(--surface) 18%);
  border-color: color-mix(in srgb, #ef4444 24%, var(--border) 76%);
}

.seller-internal-call-card-v24707.is-call-seller_hung_up,
.seller-thread-item-v243.is-call-seller_hung_up .seller-internal-call-card-v24707 {
  background: color-mix(in srgb, #fff7ed 82%, var(--surface) 18%);
  border-color: color-mix(in srgb, #f97316 28%, var(--border) 72%);
}

:root[data-theme='dark'] .seller-thread-item-v243.is-call-missed .seller-internal-call-card-v24707,
body.dark .seller-thread-item-v243.is-call-missed .seller-internal-call-card-v24707 {
  background: color-mix(in srgb, #450a0a 38%, var(--surface) 62%);
  border-color: color-mix(in srgb, #f87171 28%, var(--border) 72%);
}

:root[data-theme='dark'] .seller-thread-item-v243.is-call-seller_hung_up .seller-internal-call-card-v24707,
body.dark .seller-thread-item-v243.is-call-seller_hung_up .seller-internal-call-card-v24707 {
  background: color-mix(in srgb, #431407 38%, var(--surface) 62%);
  border-color: color-mix(in srgb, #fb923c 28%, var(--border) 72%);
}

@keyframes sellerInternalCallAvatarBreathV24708 {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.045); }
}

@keyframes sellerCallWaveIdleV24708 {
  0%, 100% { height: 10px; }
  50% { height: 28px; }
}

/* V247.09 - Llamada interna live: estados conectados */
.seller-internal-call-overlay-v24707.is-done .seller-internal-call-avatar-v24707 {
  background: linear-gradient(135deg, #0f766e, #14b8a6);
}
.seller-internal-call-overlay-v24707.is-done .seller-call-wave-v24708 i {
  animation: ciSellerVoiceLiveV24709 .9s ease-in-out infinite alternate;
}
@keyframes ciSellerVoiceLiveV24709 {
  from { transform: scaleY(.55); opacity: .72; }
  to { transform: scaleY(1.1); opacity: 1; }
}


/* V247.12 - llamadas internas: icono telefónico claro y mensajes sin emails visibles */
.ci-internal-call-icon-v24712 {
  width: 1.15em;
  height: 1.15em;
  display: block;
  fill: currentColor;
}

.seller-internal-call-avatar-v24707 .ci-internal-call-icon-v24712 {
  width: 52px;
  height: 52px;
  color: #ffffff;
  filter: drop-shadow(0 3px 8px rgba(15, 23, 42, .28));
}

.seller-internal-call-pulse-v24707 .ci-internal-call-icon-v24712 {
  width: 24px;
  height: 24px;
  color: #ffffff;
}

.seller-chat-internal-call-v24707 .ci-internal-call-icon-v24712 {
  width: 16px;
  height: 16px;
}

.seller-thread-item-v243.is-internal-call-v24707 .seller-internal-call-card-v24707 {
  position: relative;
  overflow: hidden;
}

.seller-thread-item-v243.is-internal-call-v24707 .seller-internal-call-card-v24707::before {
  content: '';
  position: absolute;
  inset: 0 auto 0 0;
  width: 5px;
  background: linear-gradient(180deg, #2563eb, #38bdf8);
}

.seller-thread-item-v243.is-call-missed .seller-internal-call-card-v24707::before {
  background: linear-gradient(180deg, #ef4444, #f97316);
}

.seller-thread-item-v243.is-call-completed .seller-internal-call-card-v24707::before,
.seller-thread-item-v243.is-call-answered .seller-internal-call-card-v24707::before {
  background: linear-gradient(180deg, #16a34a, #22c55e);
}

.seller-thread-item-v243.is-call-rejected .seller-internal-call-card-v24707::before,
.seller-thread-item-v243.is-call-seller_hung_up .seller-internal-call-card-v24707::before,
.seller-thread-item-v243.is-call-customer_hung_up .seller-internal-call-card-v24707::before {
  background: linear-gradient(180deg, #f97316, #f59e0b);
}


/* V247.13 - llamadas internas: centrar icono SVG dentro del círculo y mantener 10 timbres */
.seller-internal-call-pulse-v24707,
.seller-internal-call-avatar-v24707,
.seller-chat-internal-call-v24707 > span:first-child {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.seller-internal-call-pulse-v24707 .ci-internal-call-icon-v24712,
.seller-internal-call-avatar-v24707 .ci-internal-call-icon-v24712,
.seller-chat-internal-call-v24707 .ci-internal-call-icon-v24712 {
  position: static;
  flex: 0 0 auto;
  display: block;
  margin: auto;
  transform: none;
  transform-origin: center;
  overflow: visible;
}

.seller-internal-call-pulse-v24707 {
  flex: 0 0 42px;
  line-height: 0;
}

.seller-internal-call-pulse-v24707 .ci-internal-call-icon-v24712 {
  width: 22px;
  height: 22px;
}

/* V247.14 - desbloqueo manual de audio remoto en llamada interna */
.seller-call-audio-unlock-v24714 {
  border: 0;
  border-radius: 999px;
  padding: 10px 16px;
  font-weight: 900;
  background: #0f172a;
  color: #fff;
  box-shadow: 0 14px 26px rgba(15, 23, 42, .18);
  cursor: pointer;
}
.seller-call-audio-unlock-v24714:hover { transform: translateY(-1px); }

/* V247.15 - llamadas internas profesionales: UI más limpia, estado de audio y mute */
.seller-internal-call-copy-v24707 p[hidden] {
  display: none !important;
}
.seller-call-connection-state-v24715 {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  max-width: 100%;
  margin: 10px auto 0;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(15, 23, 42, .06);
  color: #475569;
  font-weight: 800;
  letter-spacing: .02em;
}
:root[data-theme='dark'] .seller-call-connection-state-v24715,
body.dark .seller-call-connection-state-v24715 {
  background: rgba(255, 255, 255, .09);
  color: #dbeafe;
}
.seller-call-mute-v24715 {
  border: 1px solid rgba(15, 23, 42, .14);
  background: #ffffff;
  color: #1f2937;
  border-radius: 999px;
  padding: 12px 18px;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(15, 23, 42, .08);
}
.seller-call-mute-v24715:disabled {
  opacity: .5;
  cursor: not-allowed;
}
.seller-call-mute-v24715:not(:disabled):hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 30px rgba(15, 23, 42, .12);
}

/* V248.74 · Aviso profesional cuando el comprador inicia llamada interna */
.seller-buyer-call-prompt-overlay-v24874 {
  position: fixed;
  inset: 0;
  z-index: 10010;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(15, 23, 42, .58);
  backdrop-filter: blur(8px);
}

.seller-buyer-call-prompt-modal-v24874 {
  position: relative;
  width: min(455px, 94vw);
  border-radius: 28px;
  padding: 30px 26px 24px;
  background: linear-gradient(145deg, #fff, #f8fbff);
  color: #111827;
  box-shadow: 0 28px 75px rgba(15, 23, 42, .32);
  border: 1px solid rgba(34, 197, 94, .24);
  text-align: center;
}

.seller-buyer-call-prompt-close-v24874 {
  position: absolute;
  top: 14px;
  right: 16px;
  border: 0;
  background: transparent;
  color: #111827;
  font-size: 1.55rem;
  line-height: 1;
  cursor: pointer;
}

.seller-buyer-call-prompt-avatar-v24874 {
  position: relative;
  width: 92px;
  height: 92px;
  margin: 0 auto 18px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: #16a34a;
  color: #fff;
  font-size: 36px;
  box-shadow: 0 18px 42px rgba(22, 163, 74, .32);
}

.seller-buyer-call-prompt-avatar-v24874 i {
  position: absolute;
  inset: -10px;
  border: 2px solid rgba(22, 163, 74, .38);
  border-radius: inherit;
  animation: sellerBuyerCallPromptPulseV24874 1.65s ease-out infinite;
}
.seller-buyer-call-prompt-avatar-v24874 i:nth-child(2) { animation-delay: .32s; }
.seller-buyer-call-prompt-avatar-v24874 i:nth-child(3) { animation-delay: .64s; }

@keyframes sellerBuyerCallPromptPulseV24874 {
  from { opacity: .85; transform: scale(.72); }
  to { opacity: 0; transform: scale(1.34); }
}

.seller-buyer-call-prompt-copy-v24874 .kicker {
  display: inline-flex;
  justify-content: center;
  margin-bottom: 8px;
  color: var(--accent, #b98a5c);
  font-size: .78rem;
  font-weight: 900;
  letter-spacing: .11em;
  text-transform: uppercase;
}

.seller-buyer-call-prompt-copy-v24874 h3 {
  margin: 0 0 8px;
  font-size: clamp(1.45rem, 4vw, 1.9rem);
  line-height: 1.08;
}

.seller-buyer-call-prompt-copy-v24874 p {
  margin: 0 0 10px;
  color: #475569;
  line-height: 1.45;
}

.seller-buyer-call-prompt-copy-v24874 small {
  display: block;
  color: #0f766e;
  font-weight: 800;
  line-height: 1.4;
}

.seller-buyer-call-prompt-actions-v24874 {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 22px;
}

/* V248.75: no depender de prefers-color-scheme. El modal respeta el tema real de la web. */
:root[data-theme="dark"] .seller-buyer-call-prompt-modal-v24874,
html[data-theme="dark"] .seller-buyer-call-prompt-modal-v24874,
body.dark .seller-buyer-call-prompt-modal-v24874,
body.theme-dark .seller-buyer-call-prompt-modal-v24874 {
  background: linear-gradient(145deg, #07111f, #10243a);
  color: #f8fafc;
  border-color: rgba(74, 222, 128, .22);
}
:root[data-theme="dark"] .seller-buyer-call-prompt-close-v24874,
html[data-theme="dark"] .seller-buyer-call-prompt-close-v24874,
body.dark .seller-buyer-call-prompt-close-v24874,
body.theme-dark .seller-buyer-call-prompt-close-v24874 { color: #f8fafc; }
:root[data-theme="dark"] .seller-buyer-call-prompt-copy-v24874 p,
html[data-theme="dark"] .seller-buyer-call-prompt-copy-v24874 p,
body.dark .seller-buyer-call-prompt-copy-v24874 p,
body.theme-dark .seller-buyer-call-prompt-copy-v24874 p { color: #cbd5e1; }


/* ===== v249.33 · rótulo SOLD OUT en chat/contexto del vendedor ===== */
.seller-detail-head-clean.is-sold-v24933,
.seller-property-snapshot.is-sold-v24933 {
  position: relative;
  overflow: hidden;
}

.seller-chat-sold-ribbon-v24933 {
  position: absolute;
  top: 18px;
  left: -44px;
  width: 188px;
  padding: 7px 0;
  border-radius: 3px;
  background: linear-gradient(135deg, #dc2626, #b91c1c);
  color: #fff;
  text-align: center;
  font-size: .66rem;
  font-weight: 1000;
  letter-spacing: .16em;
  line-height: 1;
  transform: rotate(-35deg);
  box-shadow: 0 10px 22px rgba(127, 29, 29, .28);
  z-index: 2;
  pointer-events: none;
}

.seller-chat-sold-ribbon-v24933.is-snapshot {
  top: 16px;
  left: -46px;
}

.seller-chat-property-status-v24933.is-sold {
  color: #991b1b;
  background: rgba(220, 38, 38, .12);
  border-color: rgba(220, 38, 38, .24);
}

@media (max-width: 760px) {
  .seller-chat-sold-ribbon-v24933 {
    top: 16px;
    left: -52px;
    width: 156px;
    font-size: .58rem;
  }
}


/* V250.33 - Confirmacion profesional posterior a guardar agenda de visita */
.seller-visit-save-notice-v25033 {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  margin: 0 0 16px;
  padding: 16px;
  border: 1px solid color-mix(in srgb, var(--success) 42%, var(--border));
  border-radius: 20px;
  background:
    radial-gradient(circle at top left, color-mix(in srgb, var(--success) 14%, transparent), transparent 46%),
    color-mix(in srgb, var(--surface) 92%, var(--success) 8%);
  box-shadow: 0 18px 48px rgba(15, 23, 42, .08);
}

.seller-visit-save-notice-icon-v25033 {
  width: 42px;
  height: 42px;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  color: #fff;
  background: var(--success);
  font-weight: 950;
  box-shadow: 0 12px 28px color-mix(in srgb, var(--success) 28%, transparent);
}

.seller-visit-save-notice-copy-v25033 {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.seller-visit-save-notice-copy-v25033 strong {
  color: var(--text);
  font-size: 1rem;
  font-weight: 950;
}

.seller-visit-save-notice-copy-v25033 span {
  color: var(--success);
  font-size: .88rem;
  font-weight: 900;
}

.seller-visit-save-notice-copy-v25033 p {
  margin: 0;
  color: var(--text-soft);
  font-size: .9rem;
  line-height: 1.45;
}

.seller-visit-save-notice-actions-v25033 {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

:root[data-theme="dark"] .seller-visit-save-notice-v25033,
body.dark .seller-visit-save-notice-v25033 {
  background:
    radial-gradient(circle at top left, color-mix(in srgb, var(--success) 18%, transparent), transparent 48%),
    color-mix(in srgb, var(--surface) 88%, #052e1a 12%);
  border-color: color-mix(in srgb, var(--success) 48%, var(--border));
  box-shadow: 0 20px 52px rgba(0, 0, 0, .32);
}

@media (max-width: 720px) {
  .seller-visit-save-notice-v25033 {
    grid-template-columns: auto 1fr;
  }
  .seller-visit-save-notice-actions-v25033 {
    grid-column: 1 / -1;
    justify-content: stretch;
  }
  .seller-visit-save-notice-actions-v25033 .btn {
    width: 100%;
  }
}

/* V250.42: detalle profesional de cancelación de visita del lado vendedor */
.seller-visit-detail-overlay-v25042 {
  position: fixed;
  inset: 0;
  z-index: 9998;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(2, 6, 23, .68);
  backdrop-filter: blur(10px);
}

.seller-visit-detail-modal-v25042 {
  position: relative;
  width: min(760px, calc(100vw - 28px));
  max-height: min(86vh, 760px);
  overflow: auto;
  border: 1px solid color-mix(in srgb, #ef4444 42%, var(--border));
  border-radius: 24px;
  background: color-mix(in srgb, var(--surface) 92%, #0f172a 8%);
  box-shadow: 0 28px 90px rgba(2, 6, 23, .42);
  padding: 24px;
  color: var(--text);
}

.seller-visit-detail-close-v25042 {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 38px;
  height: 38px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface-alt);
  color: var(--heading);
  font-size: 1.4rem;
  font-weight: 900;
  cursor: pointer;
}

.seller-visit-detail-close-v25042:hover,
.seller-visit-detail-close-v25042:focus-visible {
  outline: none;
  border-color: color-mix(in srgb, var(--accent) 65%, var(--border));
  transform: translateY(-1px);
}

.seller-visit-detail-kicker-v25042 {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  border-radius: 999px;
  border: 1px solid rgba(248, 113, 113, .48);
  background: rgba(127, 29, 29, .16);
  color: color-mix(in srgb, #fecaca 78%, var(--heading));
  padding: 4px 12px;
  font-size: .75rem;
  font-weight: 950;
  letter-spacing: .03em;
  text-transform: uppercase;
}

.seller-visit-detail-modal-v25042 h2 {
  margin: 14px 48px 8px 0;
  color: var(--heading);
  font-size: clamp(1.45rem, 2vw, 2rem);
}

.seller-visit-detail-intro-v25042 {
  margin: 0 0 18px;
  color: var(--text-soft);
  font-weight: 760;
  line-height: 1.55;
}

.seller-visit-detail-grid-v25042 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 18px 0;
}

.seller-visit-detail-grid-v25042 > div,
.seller-visit-detail-note-v25042 {
  border: 1px solid var(--border);
  border-radius: 18px;
  background: var(--surface-alt);
  padding: 13px 14px;
}

.seller-visit-detail-grid-v25042 .is-wide {
  grid-column: 1 / -1;
}

.seller-visit-detail-grid-v25042 span,
.seller-visit-detail-note-v25042 span {
  display: block;
  color: var(--text-soft);
  font-size: .78rem;
  font-weight: 950;
  letter-spacing: .02em;
  text-transform: uppercase;
  margin-bottom: 5px;
}

.seller-visit-detail-grid-v25042 strong {
  display: block;
  color: var(--heading);
  font-weight: 950;
  line-height: 1.35;
}

.seller-visit-detail-note-v25042 {
  margin-top: 12px;
}

.seller-visit-detail-note-v25042 p {
  margin: 0;
  color: var(--heading);
  font-weight: 820;
  line-height: 1.55;
  white-space: pre-wrap;
}

.seller-visit-detail-note-v25042.is-cancellation {
  border-color: rgba(248, 113, 113, .42);
  background: color-mix(in srgb, rgba(127, 29, 29, .16) 55%, var(--surface-alt));
}

.seller-visit-detail-actions-v25042 {
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

@media (max-width: 680px) {
  .seller-visit-detail-modal-v25042 {
    padding: 20px;
  }

  .seller-visit-detail-grid-v25042 {
    grid-template-columns: 1fr;
  }

  .seller-visit-detail-actions-v25042 .btn {
    width: 100%;
  }
}
