/* Bandejas: estados de la tarjeta y asistente «Nueva bandeja». */
.section-actions { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 4px; }
.channel-card.is-paused { border-style: dashed; border-color: color-mix(in srgb, var(--warning) 45%, var(--line)); }
.channel-card.is-archived { border-style: dashed; background: var(--surface-2); }
.channel-card.is-paused .channel-icon { background: var(--warning-soft); color: var(--warning); }
.channel-card.is-archived .channel-icon { background: var(--surface-3); color: var(--muted); }
.channel-card.is-archived .channel-name, .channel-card.is-archived .channel-phone { color: var(--muted); }
.channel-copy > p.channel-state-hint { margin: 0 0 9px; color: var(--muted); font-size: var(--text-sm); }
.channel-confirm { display: grid; gap: 8px; margin-bottom: 8px; padding: 12px; border: 1px solid var(--line-strong); border-radius: var(--radius-sm); background: var(--surface); }
.channel-confirm p { margin: 0; color: var(--ink); font-size: var(--text-sm); }

.wizard-steps { display: flex; flex-wrap: wrap; gap: 6px 14px; margin: 0 0 20px; padding: 0; list-style: none; }
.wizard-step { display: inline-flex; align-items: center; gap: 7px; color: var(--subtle); font-size: var(--text-sm); font-weight: 650; }
.wizard-step.current { color: var(--ink); }
.wizard-step.done { color: var(--success); }
.wizard-step-dot { display: inline-grid; width: 20px; height: 20px; place-items: center; border-radius: 50%; background: var(--surface-2); color: var(--muted); font-size: .68rem; font-weight: 750; }
.wizard-step.current .wizard-step-dot { background: var(--accent); color: #fff; }
.wizard-step.done .wizard-step-dot { background: var(--success-soft); color: var(--success); }
.wizard-body { padding-top: 22px; }
.wizard-heading { margin: 0 0 10px; font-size: var(--text-md); }
.wizard-form { display: grid; gap: 14px; }
.wizard-form > label { display: grid; gap: 6px; }
.wizard-embedded { display: grid; gap: 12px; justify-items: start; margin-bottom: 8px; }
.type-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 10px; }
.type-card { display: grid; gap: 4px; justify-items: start; padding: 14px; border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--surface); color: var(--ink); font: inherit; text-align: left; cursor: pointer; transition: border-color var(--dur-1) var(--ease-out), background var(--dur-1) var(--ease-out); }
.type-card:hover, .type-card.selected { border-color: var(--accent); background: var(--accent-soft); }
.type-card:focus-visible { outline: 2px solid color-mix(in srgb, var(--accent) 55%, transparent); outline-offset: 2px; }
.type-card-icon { display: grid; width: 36px; height: 36px; place-items: center; border-radius: 50%; background: var(--accent-soft); color: var(--accent); }
.type-card small { color: var(--muted); font-size: var(--text-xs); }
.test-result { display: grid; gap: 4px; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius-sm); font-size: var(--text-sm); }
.test-result.success { border-color: color-mix(in srgb, var(--success) 40%, var(--line)); background: var(--success-soft); color: var(--success); }
.test-result.error { border-color: color-mix(in srgb, var(--danger) 40%, var(--line)); background: var(--danger-soft); color: var(--danger); }
.test-result.note { background: var(--surface-2); color: var(--ink); }
.test-result span { color: var(--ink); }
.wizard-testing { margin: 0; color: var(--muted); font-size: var(--text-sm); }
.wizard-done { display: grid; justify-items: center; text-align: center; gap: 8px; padding: 20px 0; }
.wizard-done p { margin: 0 0 12px; color: var(--muted); }
@media (max-width: 640px) {
  .wizard { padding: 20px 16px; }
  .type-grid { grid-template-columns: 1fr 1fr; }
  .channel-actions .button { min-height: 40px; }
}
.message-delivery { display: block; margin-top: 4px; color: var(--warning); font-size: var(--text-xs); font-weight: 650; }
.channel-discarded { margin: 0 0 9px; padding: 6px 10px; border-radius: var(--radius-sm); background: var(--warning-soft); color: var(--warning); font-size: var(--text-sm); font-weight: 650; }
