/* Assistente EVA — mesmo vocabulário visual do site (style.css: cards brancos, área #f8fafc) */

.eva-body {
  margin: 0;
  min-height: 100vh;
  background: #f8fafc;
  color: var(--text-primary, #0f172a);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

.eva-main {
  max-width: min(1080px, calc(100vw - 32px));
  margin: 0 auto;
  padding: 24px 16px 80px;
  box-sizing: border-box;
}

.eva-wizard-shell {
  background: var(--bg-card, #ffffff);
  border-radius: var(--radius-lg, 16px);
  border: 1px solid var(--border, #e2e8f0);
  box-shadow: var(--shadow-lg, 0 10px 15px -3px rgba(0, 0, 0, 0.1));
  overflow: visible;
}

.eva-wizard-header {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 24px;
  background: linear-gradient(135deg, var(--primary, #0f766e) 0%, var(--primary-dark, #0b5e58) 100%);
  border-bottom: none;
  box-shadow: var(--shadow-sm, 0 1px 2px 0 rgba(0, 0, 0, 0.05));
}

.eva-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
  border: 2px solid rgba(255, 255, 255, 0.5);
}

.eva-avatar svg {
  width: 36px;
  height: 36px;
}

.eva-wizard-heading h1 {
  margin: 0;
  font-size: 1.35rem;
  font-weight: 700;
  color: #ffffff;
}

.eva-wizard-sub {
  margin: 4px 0 0;
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.92);
  line-height: 1.4;
}

/* Guias por etapa */
.eva-guide {
  margin-bottom: 20px;
  padding: 16px 18px;
  background: #f8fafc;
  border: 1px solid var(--border, #e2e8f0);
  border-radius: var(--radius, 12px);
}

.eva-guide-title {
  margin: 0 0 10px;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-primary, #0f172a);
}

.eva-guide p {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.55;
  color: var(--text-secondary, #64748b);
}

.eva-guide code {
  font-size: 0.8rem;
  background: rgba(15, 118, 110, 0.12);
  padding: 2px 6px;
  border-radius: 4px;
  color: var(--primary-dark, #0b5e58);
}

.eva-subsection-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--primary-dark, #0b5e58);
  margin: 20px 0 10px;
}

/* Boas-vindas (etapa 1) — abertura premium */
.eva-guide--intro {
  padding: 20px 20px 22px;
  margin-bottom: 22px;
  background: linear-gradient(165deg, #ffffff 0%, #f8fafc 100%);
  border: 1px solid var(--border, #e2e8f0);
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.05);
}

.eva-guide--intro .eva-guide-title {
  margin: 0 0 12px;
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.25;
  color: var(--text-primary, #0f172a);
}

.eva-intro-lead {
  margin: 0 0 18px;
  font-size: 0.98rem;
  line-height: 1.55;
  color: var(--text-secondary, #64748b);
}

.eva-intro-list-title {
  margin: 0 0 10px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--text-light, #94a3b8);
}

.eva-intro-list {
  list-style: none;
  margin: 0 0 20px;
  padding: 0;
}

.eva-intro-list li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 12px;
  font-size: 0.9rem;
  line-height: 1.45;
  color: var(--text-secondary, #475569);
}

.eva-intro-list li:last-child {
  margin-bottom: 0;
}

.eva-intro-list-marker {
  flex-shrink: 0;
  width: 8px;
  height: 8px;
  margin-top: 7px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary, #0f766e), var(--primary-dark, #0b5e58));
  box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.2);
}

.eva-intro-list strong {
  color: var(--text-primary, #0f172a);
  font-weight: 700;
}

.eva-intro-list em {
  font-style: normal;
  font-size: 0.82em;
  color: var(--text-light, #94a3b8);
}

.eva-intro-reassure {
  margin: 0;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid rgba(15, 118, 110, 0.35);
  background: rgba(15, 118, 110, 0.08);
}

.eva-intro-reassure-kicker {
  margin: 0 0 6px;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--primary-dark, #0b5e58);
}

.eva-intro-reassure-text {
  margin: 0;
  font-size: 0.86rem;
  line-height: 1.5;
  color: var(--text-secondary, #64748b);
}

.eva-btn-intro-cta {
  margin-top: 4px;
}

@media (max-width: 480px) {
  .eva-guide--intro {
    padding: 18px 16px 20px;
  }

  .eva-guide--intro .eva-guide-title {
    font-size: 1.15rem;
  }
}

/* Stepper: quebra em linhas para caber sem cortar itens 7 e 8 */
.eva-stepper {
  padding: 12px 14px;
  background: #ffffff;
  border-bottom: 1px solid var(--border, #e2e8f0);
  overflow: visible;
}

.eva-stepper-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px 8px;
  list-style: none;
  margin: 0;
  padding: 0;
  row-gap: 8px;
}

.eva-stepper-item {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 8px;
  border-radius: 8px;
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--text-light, #94a3b8);
  white-space: nowrap;
  border: 1px solid transparent;
  flex-shrink: 0;
}

.eva-stepper-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  font-size: 0.65rem;
  font-weight: 700;
  background: #e2e8f0;
  color: var(--text-secondary, #64748b);
  flex-shrink: 0;
}

.eva-stepper-item.is-current {
  color: var(--primary-dark, #0b5e58);
  background: rgba(15, 118, 110, 0.1);
  border-color: rgba(15, 118, 110, 0.35);
}

.eva-stepper-item.is-current .eva-stepper-num {
  background: var(--primary, #0f766e);
  color: #fff;
}

.eva-stepper-item.is-done {
  color: var(--text-secondary, #64748b);
}

.eva-stepper-item.is-done .eva-stepper-num {
  background: rgba(16, 185, 129, 0.25);
  color: #047857;
}

.eva-progress-wrap {
  padding: 12px 20px 8px;
  background: #ffffff;
  border-bottom: 1px solid var(--border, #e2e8f0);
}

.eva-progress-track {
  height: 6px;
  background: var(--border, #e2e8f0);
  border-radius: 6px;
  overflow: hidden;
}

.eva-progress-track .eva-progress-fill {
  height: 100%;
  border-radius: 6px;
  transition: width 0.35s ease;
}

.eva-progress-label {
  margin: 8px 0 0;
  font-size: 0.8rem;
  color: var(--text-secondary, #64748b);
  font-weight: 500;
}

/* Lembrete de projetos nas etapas seguintes */
.eva-onb-context {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 0;
  padding: 10px 20px 12px;
  background: linear-gradient(180deg, rgba(15, 118, 110, 0.08) 0%, #ffffff 100%);
  border-bottom: 1px solid var(--border, #e2e8f0);
}

.eva-onb-context[hidden] {
  display: none !important;
}

.eva-onb-context-dot {
  flex-shrink: 0;
  width: 8px;
  height: 8px;
  margin-top: 6px;
  border-radius: 50%;
  background: var(--primary, #0f766e);
  box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.2);
}

.eva-onb-context-text {
  margin: 0;
  font-size: 0.82rem;
  line-height: 1.45;
  color: var(--text-secondary, #64748b);
  flex: 1;
  min-width: 0;
}

.eva-panel {
  padding: 20px 24px 28px;
  background: #ffffff;
}

.eva-step {
  display: none;
}

.eva-step.is-active {
  display: block;
}

.eva-form-grid {
  display: grid;
  gap: 14px;
}

.eva-form-grid.two {
  grid-template-columns: 1fr 1fr;
}

@media (max-width: 600px) {
  .eva-form-grid.two {
    grid-template-columns: 1fr;
  }
}

.eva-field label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-secondary, #64748b);
  margin-bottom: 6px;
}

.eva-field input,
.eva-field select,
.eva-field textarea {
  width: 100%;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid var(--border, #e2e8f0);
  background: #ffffff;
  color: var(--text-primary, #0f172a);
  font-size: 0.95rem;
}

.eva-field input:focus,
.eva-field select:focus,
.eva-field textarea:focus {
  outline: none;
  border-color: var(--primary, #0f766e);
  box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.15);
}

.eva-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 20px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.eva-btn-primary {
  background: linear-gradient(135deg, var(--primary, #0f766e) 0%, var(--primary-dark, #0b5e58) 100%);
  color: #ffffff;
  width: 100%;
  margin-top: 8px;
}

.eva-btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-md, 0 4px 6px -1px rgba(0, 0, 0, 0.1));
}

.eva-btn-ghost {
  background: #ffffff;
  color: var(--text-secondary, #64748b);
  border: 1px solid var(--border, #e2e8f0);
  width: 100%;
  margin-top: 8px;
}

.eva-btn-ghost:hover {
  color: var(--primary-dark, #0b5e58);
  border-color: var(--primary, #0f766e);
  background: rgba(15, 118, 110, 0.06);
}

.eva-btn-back {
  margin-bottom: 10px;
}

.eva-error {
  background: rgba(239, 68, 68, 0.08);
  border: 1px solid rgba(239, 68, 68, 0.35);
  color: #b91c1c;
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 0.9rem;
  margin-bottom: 12px;
}

.eva-success {
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.35);
  color: #047857;
  padding: 14px 16px;
  border-radius: 10px;
  margin-bottom: 16px;
}

.eva-table-wrap {
  overflow-x: auto;
  margin: 12px 0;
  border-radius: 10px;
  border: 1px solid var(--border, #e2e8f0);
  background: #ffffff;
}

.eva-table-wrap table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}

.eva-table-wrap th,
.eva-table-wrap td {
  padding: 8px 10px;
  text-align: left;
  border-bottom: 1px solid var(--border, #e2e8f0);
}

.eva-table-wrap th {
  color: var(--text-secondary, #64748b);
  font-weight: 600;
  background: #f8fafc;
}

.eva-table-wrap input,
.eva-table-wrap select {
  min-width: 80px;
  border: 1px solid var(--border, #e2e8f0) !important;
  background: #ffffff !important;
  color: var(--text-primary, #0f172a) !important;
  padding: 8px 10px;
  border-radius: 8px;
  font-size: 0.875rem;
}

.eva-table-wrap select.eva-tipo-select {
  min-width: 160px;
  max-width: 100%;
}

.eva-td-tipo {
  vertical-align: top;
  min-width: 180px;
}

/* Etapa Gastos do mês (despesas) — onboarding premium */
.eva-guide--despesas {
  margin-bottom: 18px;
}

.eva-desp-lead,
.eva-desp-lead-secondary {
  margin: 0 0 12px;
  font-size: 0.95rem;
  line-height: 1.55;
  color: var(--text-secondary, #64748b);
}

.eva-desp-lead-secondary {
  margin-bottom: 0;
}

.eva-desp-callout {
  margin: 0 0 22px;
  padding: 14px 16px 16px;
  border-radius: 14px;
  border: 1px solid rgba(15, 118, 110, 0.35);
  background: linear-gradient(135deg, rgba(15, 118, 110, 0.09) 0%, #f8fffc 100%);
}

.eva-desp-callout-kicker {
  margin: 0 0 6px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--primary-dark, #0b5e58);
}

.eva-desp-callout-text {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.5;
  color: var(--text-secondary, #64748b);
}

.eva-desp-block {
  margin-bottom: 22px;
  padding: 18px 18px 16px;
  border-radius: 16px;
  border: 1px solid var(--border, #e2e8f0);
  background: #ffffff;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.eva-desp-block--ess {
  border-left: 4px solid #64748b;
}

.eva-desp-block--pes {
  border-left: 4px solid var(--primary, #0f766e);
}

.eva-desp-block-head {
  margin-bottom: 14px;
}

.eva-desp-block-title {
  margin: 0 0 6px;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-primary, #0f172a);
}

.eva-desp-block-sub {
  margin: 0;
  font-size: 0.86rem;
  line-height: 1.45;
  color: var(--text-secondary, #64748b);
}

.eva-desp-table-shell {
  overflow-x: auto;
  margin: 0 0 12px;
  border-radius: 12px;
  border: 1px solid #e8ecf1;
  background: #fafbfc;
}

.eva-desp-table {
  width: 100%;
  min-width: 520px;
  border-collapse: collapse;
  font-size: 0.875rem;
}

.eva-desp-table thead th {
  padding: 10px 12px;
  text-align: left;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-light, #94a3b8);
  background: #f1f5f9;
  border-bottom: 1px solid var(--border, #e2e8f0);
}

.eva-desp-table tbody td {
  padding: 10px 12px;
  vertical-align: middle;
  border-bottom: 1px solid #eef2f7;
  background: #ffffff;
}

.eva-desp-table tbody tr:last-child td {
  border-bottom: none;
}

#step-despesas tr.eva-desp-row--proj td {
  background: rgba(15, 118, 110, 0.06);
}

#step-despesas .eva-desp-table tbody tr:hover td {
  background: #f8fafc;
}

#step-despesas tr.eva-desp-row--proj:hover td {
  background: rgba(15, 118, 110, 0.1);
}

.eva-desp-th-actions {
  width: 44px;
  min-width: 44px;
  text-align: center;
}

#step-despesas .eva-desp-table input,
#step-despesas .eva-desp-table select {
  min-width: 0;
  width: 100%;
  max-width: 100%;
  border: 1px solid var(--border, #e2e8f0) !important;
  background: #ffffff !important;
  color: var(--text-primary, #0f172a) !important;
  padding: 9px 10px;
  border-radius: 10px;
  font-size: 0.875rem;
}

#step-despesas .eva-desp-table select.eva-tipo-select {
  min-width: 140px;
}

#step-despesas .eva-td-tipo {
  min-width: 160px;
}

.eva-desp-add {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--primary-dark, #0b5e58);
  background: transparent;
  border: 1.5px dashed rgba(15, 118, 110, 0.4);
  border-radius: 12px;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.eva-desp-add:hover {
  background: rgba(15, 118, 110, 0.06);
  border-color: var(--primary, #0f766e);
}

.eva-desp-add-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 6px;
  background: rgba(15, 118, 110, 0.12);
  font-weight: 700;
  line-height: 1;
}

.eva-desp-hint {
  margin: 0 0 14px;
  font-size: 0.8rem;
  line-height: 1.45;
  color: var(--text-light, #94a3b8);
}

.eva-desp-nome:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

/* Etapa Projetos financeiros (onboarding) — cards premium */
.eva-guide--projects {
  margin-bottom: 22px;
}

.eva-proj-lead,
.eva-proj-lead-secondary {
  margin: 0 0 12px;
  font-size: 0.95rem;
  line-height: 1.55;
  color: var(--text-secondary, #64748b);
}

.eva-proj-lead-secondary {
  margin-bottom: 16px;
}

.eva-proj-examples {
  margin-top: 4px;
  padding-top: 14px;
  border-top: 1px solid var(--border, #e2e8f0);
}

.eva-proj-examples-title {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-light, #94a3b8);
  margin-bottom: 10px;
}

.eva-proj-examples-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.eva-proj-examples-list li {
  font-size: 0.8rem;
  color: var(--text-secondary, #64748b);
  padding: 6px 12px;
  border-radius: 999px;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
}

.eva-proj-summary-strip {
  margin-bottom: 18px;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid rgba(15, 118, 110, 0.25);
  background: #f8fffc;
}

.eva-proj-summary-strip-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 10px;
  font-size: 0.9rem;
  line-height: 1.45;
  color: var(--text-primary, #0f172a);
}

.eva-proj-summary-label {
  display: block;
  width: 100%;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--primary-dark, #0b5e58);
  margin-bottom: 4px;
}

.eva-proj-summary-sep {
  color: var(--text-light, #94a3b8);
  font-weight: 600;
}

#evaProjSummaryCount {
  font-weight: 700;
}

#evaProjSummaryTotal {
  font-weight: 600;
  color: var(--text-secondary, #475569);
}

.eva-proj-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 8px;
}

.eva-proj-card {
  position: relative;
  border-radius: 16px;
  border: 1px solid rgba(226, 232, 240, 0.95);
  background: linear-gradient(165deg, #ffffff 0%, #fafbfc 100%);
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06);
  overflow: hidden;
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.eva-proj-card:focus-within {
  border-color: rgba(15, 118, 110, 0.45);
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.07), 0 0 0 1px rgba(15, 118, 110, 0.12);
}

.eva-proj-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px 0;
}

.eva-proj-card-kicker {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--primary-dark, #0b5e58);
}

.eva-proj-remove {
  flex-shrink: 0;
  padding: 6px 10px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-secondary, #64748b);
  background: transparent;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: color 0.15s ease, background 0.15s ease;
}

.eva-proj-remove:hover {
  color: #b91c1c;
  background: rgba(239, 68, 68, 0.08);
}

.eva-proj-remove:focus-visible {
  outline: 2px solid var(--primary, #0f766e);
  outline-offset: 2px;
}

.eva-proj-card-body {
  padding: 8px 16px 4px;
}

.eva-proj-card-body .eva-field label {
  font-size: 0.78rem;
}

.eva-proj-card-body .eva-field input {
  font-size: 0.95rem;
}

.eva-proj-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 16px;
}

@media (max-width: 520px) {
  .eva-proj-split {
    grid-template-columns: 1fr;
  }
}

.eva-proj-hero {
  margin: 8px 16px 18px;
  padding: 18px 18px 20px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(15, 118, 110, 0.12) 0%, rgba(11, 94, 88, 0.08) 100%);
  border: 1px solid rgba(15, 118, 110, 0.22);
  text-align: center;
}

.eva-proj-hero-label {
  margin: 0 0 6px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--primary-dark, #0b5e58);
}

.eva-proj-hero-value {
  margin: 0;
  font-size: 1.75rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #94a3b8;
  line-height: 1.2;
  font-variant-numeric: tabular-nums;
  transition: color 0.2s ease, transform 0.2s ease;
}

.eva-proj-hero-value.is-filled {
  color: #0f172a;
}

@media (max-width: 380px) {
  .eva-proj-hero-value {
    font-size: 1.45rem;
  }
}

.eva-proj-hero-hint {
  margin: 10px 0 0;
  font-size: 0.78rem;
  line-height: 1.45;
  color: var(--text-secondary, #64748b);
  max-width: 280px;
  margin-left: auto;
  margin-right: auto;
}

.eva-proj-add {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  margin: 4px 0 12px;
  padding: 14px 18px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--primary-dark, #0b5e58);
  background: #f8fafc;
  border: 1.5px dashed rgba(15, 118, 110, 0.45);
  border-radius: 14px;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.eva-proj-add:hover {
  background: rgba(15, 118, 110, 0.08);
  border-color: var(--primary, #0f766e);
}

.eva-proj-add:focus-visible {
  outline: 2px solid var(--primary, #0f766e);
  outline-offset: 2px;
}

.eva-proj-add-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 8px;
  background: rgba(15, 118, 110, 0.15);
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1;
}

.eva-proj-footnote {
  margin: 0 0 16px;
  font-size: 0.8rem;
  line-height: 1.45;
  color: var(--text-light, #94a3b8);
}

.eva-row-remove {
  background: none;
  border: none;
  color: var(--text-light, #94a3b8);
  cursor: pointer;
  font-size: 1rem;
  padding: 4px 8px;
}

.eva-add-row {
  font-size: 0.85rem;
  color: var(--primary-dark, #0b5e58);
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px 0;
  text-decoration: underline;
  font-weight: 500;
}

.eva-progress-fill {
  background: linear-gradient(90deg, var(--primary, #0f766e), var(--primary-dark, #0b5e58));
}

/* Overlay de processamento (onboarding) */
.eva-processing-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(15, 23, 42, 0.45);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  animation: eva-overlay-in 0.2s ease;
}

.eva-processing-overlay[hidden] {
  display: none !important;
}

@keyframes eva-overlay-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.eva-processing-card {
  width: 100%;
  max-width: 340px;
  padding: 28px 24px 24px;
  background: #ffffff;
  border-radius: 16px;
  border: 1px solid var(--border, #e2e8f0);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.2), 0 0 0 1px rgba(15, 118, 110, 0.12);
  text-align: center;
  animation: eva-card-pop 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes eva-card-pop {
  from {
    opacity: 0;
    transform: scale(0.94) translateY(8px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.eva-processing-spinner {
  width: 48px;
  height: 48px;
  margin: 0 auto 16px;
  border-radius: 50%;
  border: 3px solid #e2e8f0;
  border-top-color: var(--primary, #0f766e);
  border-right-color: var(--primary-dark, #0b5e58);
  animation: eva-spin 0.75s linear infinite;
}

@keyframes eva-spin {
  to {
    transform: rotate(360deg);
  }
}

.eva-processing-msg {
  margin: 0 0 8px;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-primary, #0f172a);
}

.eva-processing-hint {
  margin: 0;
  font-size: 0.875rem;
  color: var(--text-secondary, #64748b);
  line-height: 1.45;
}

/* Etapa reserva de emergência — escolha guiada */
.eva-em-intro {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.55;
  color: var(--text-secondary, #64748b);
}

.eva-em-baseline {
  margin-bottom: 20px;
  padding: 14px 16px;
  background: #f0fdf9;
  border: 1px solid rgba(15, 118, 110, 0.35);
  border-radius: var(--radius, 12px);
}

.eva-em-baseline-title {
  margin: 0 0 6px;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--primary-dark, #0b5e58);
}

.eva-em-baseline-lead {
  margin: 0 0 10px;
  font-size: 0.9rem;
  color: var(--text-secondary, #64748b);
  line-height: 1.45;
}

.eva-em-baseline-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.eva-em-baseline-list li {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 0;
  border-bottom: 1px solid rgba(15, 118, 110, 0.15);
  font-size: 0.9rem;
}

.eva-em-baseline-list li:last-child {
  border-bottom: none;
}

.eva-em-baseline-label {
  color: var(--text-secondary, #64748b);
}

.eva-em-baseline-warn {
  margin: 10px 0 0;
  font-size: 0.85rem;
  color: #b45309;
  line-height: 1.4;
}

.eva-em-question {
  margin: 0 0 12px;
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary, #0f172a);
}

.eva-em-choice-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 18px;
}

@media (max-width: 720px) {
  .eva-em-choice-grid {
    grid-template-columns: 1fr;
  }
}

.eva-em-card {
  position: relative;
  display: block;
  margin: 0;
  padding: 0;
  cursor: pointer;
  border-radius: var(--radius, 12px);
  border: 2px solid var(--border, #e2e8f0);
  background: #ffffff;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.eva-em-card:hover {
  border-color: rgba(15, 118, 110, 0.5);
}

.eva-em-card input[type='radio'] {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.eva-em-card.is-selected {
  border-color: var(--primary, #0f766e);
  box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.15);
}

.eva-em-card:has(input:focus-visible) {
  outline: 2px solid var(--primary, #0f766e);
  outline-offset: 2px;
}

.eva-em-card:has(input:disabled) {
  opacity: 0.55;
  cursor: not-allowed;
}

.eva-em-card-body {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 14px 14px 16px;
}

.eva-em-card-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-primary, #0f172a);
}

.eva-em-card-desc {
  font-size: 0.8rem;
  line-height: 1.4;
  color: var(--text-secondary, #64748b);
}

.eva-em-card-value {
  margin-top: 4px;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--primary-dark, #0b5e58);
}

.eva-em-card-value--muted {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-secondary, #64748b);
}

.eva-em-custom-wrap {
  margin-bottom: 16px;
}

.eva-em-help {
  margin: 6px 0 0;
  font-size: 0.8rem;
  color: var(--text-light, #94a3b8);
  line-height: 1.4;
}

.eva-input-error {
  border-color: #ef4444 !important;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.12) !important;
}

.eva-em-summary {
  margin: 20px 0 8px;
  padding: 16px 18px;
  background: #f8fafc;
  border: 1px solid var(--border, #e2e8f0);
  border-radius: var(--radius, 12px);
}

.eva-em-summary-title {
  margin: 0 0 12px;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-primary, #0f172a);
}

.eva-em-summary-dl {
  margin: 0;
  display: grid;
  gap: 8px;
}

.eva-em-summary-dl > div {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  font-size: 0.9rem;
}

.eva-em-summary-dl dt {
  margin: 0;
  color: var(--text-secondary, #64748b);
  font-weight: 500;
}

.eva-em-summary-dl dd {
  margin: 0;
  font-weight: 700;
  color: var(--text-primary, #0f172a);
  text-align: right;
}

.eva-em-progress {
  margin-top: 14px;
  height: 8px;
  background: var(--border, #e2e8f0);
  border-radius: 8px;
  overflow: hidden;
}

.eva-em-progress-fill {
  height: 100%;
  width: 0%;
  border-radius: 8px;
  background: linear-gradient(90deg, var(--primary, #0f766e), var(--primary-dark, #0b5e58));
  transition: width 0.35s ease;
}

.eva-em-summary-note {
  margin: 12px 0 0;
  font-size: 0.85rem;
  line-height: 1.45;
}

.eva-em-summary-note--hint {
  color: var(--text-secondary, #64748b);
}

.eva-em-summary-note--success {
  color: #047857;
}

/* Etapa Manutenção — cards no estilo Emergência / Projetos */
.eva-guide--maintenance {
  margin-bottom: 12px;
}

.eva-guide--maintenance .eva-guide-title {
  margin-bottom: 0;
}

.eva-maint-baseline {
  margin-bottom: 22px;
  padding: 16px 18px 18px;
  border-radius: 14px;
  border: 1px solid rgba(15, 118, 110, 0.35);
  background: linear-gradient(135deg, rgba(15, 118, 110, 0.1) 0%, #f8fffc 100%);
}

.eva-maint-baseline-lead {
  margin: 0 0 14px;
  font-size: 0.93rem;
  line-height: 1.55;
  color: var(--text-secondary, #64748b);
}

.eva-maint-baseline-note {
  margin: 0;
  padding-top: 14px;
  border-top: 1px solid rgba(15, 118, 110, 0.22);
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--text-secondary, #64748b);
}

.eva-maint-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 8px;
}

.eva-maint-card {
  border-radius: 16px;
  border: 1px solid rgba(226, 232, 240, 0.95);
  background: linear-gradient(165deg, #ffffff 0%, #fafbfc 100%);
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06);
  overflow: hidden;
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.eva-maint-card:focus-within {
  border-color: rgba(15, 118, 110, 0.45);
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.07), 0 0 0 1px rgba(15, 118, 110, 0.12);
}

.eva-maint-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px 0;
}

.eva-maint-card-kicker {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--primary-dark, #0b5e58);
}

.eva-maint-card-body {
  padding: 8px 16px 18px;
}

.eva-maint-card-body .eva-field label {
  font-size: 0.78rem;
}

.eva-maint-card-body .eva-field input {
  font-size: 0.95rem;
}

.eva-maint-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 16px;
}

@media (max-width: 520px) {
  .eva-maint-split {
    grid-template-columns: 1fr;
  }
}

.eva-maint-add {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  margin: 4px 0 12px;
  padding: 14px 18px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--primary-dark, #0b5e58);
  background: #f8fafc;
  border: 1.5px dashed rgba(15, 118, 110, 0.45);
  border-radius: 14px;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.eva-maint-add:hover {
  background: rgba(15, 118, 110, 0.08);
  border-color: var(--primary, #0f766e);
}

.eva-maint-add:focus-visible {
  outline: 2px solid var(--primary, #0f766e);
  outline-offset: 2px;
}

.eva-maint-add-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 8px;
  background: rgba(15, 118, 110, 0.15);
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1;
}

/* Conta — senha forte */
.eva-guide--account .eva-account-lead {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.55;
  color: var(--text-secondary, #64748b);
}

.eva-field-hint {
  margin: 6px 0 0;
  font-size: 0.8rem;
  color: var(--text-light, #94a3b8);
  line-height: 1.45;
}

.eva-pw-panel {
  margin-top: 12px;
  padding: 12px 14px;
  border-radius: 10px;
  background: #f8fafc;
  border: 1px solid var(--border, #e2e8f0);
}

.eva-pw-panel-title {
  margin: 0 0 8px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-light, #94a3b8);
}

.eva-pw-checklist {
  list-style: none;
  margin: 0;
  padding: 0;
}

.eva-pw-rule {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 6px;
  font-size: 0.82rem;
  color: var(--text-secondary, #64748b);
  line-height: 1.4;
}

.eva-pw-rule:last-child {
  margin-bottom: 0;
}

.eva-pw-rule-icon {
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  margin-top: 2px;
  border-radius: 50%;
  border: 2px solid #cbd5e1;
  background: #fff;
  position: relative;
}

.eva-pw-rule.is-done {
  color: var(--primary-dark, #0b5e58);
}

.eva-pw-rule.is-done .eva-pw-rule-icon {
  border-color: var(--primary, #0f766e);
  background: rgba(15, 118, 110, 0.15);
}

.eva-pw-rule.is-done .eva-pw-rule-icon::after {
  content: '';
  position: absolute;
  left: 4px;
  top: 1px;
  width: 4px;
  height: 8px;
  border: solid var(--primary-dark, #0b5e58);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.eva-pw-match {
  margin: 8px 0 0;
  font-size: 0.82rem;
  font-weight: 500;
}

.eva-pw-match--ok {
  color: #047857;
}

.eva-pw-match--err {
  color: #b91c1c;
}

.eva-pw-match--warn {
  color: #b45309;
}

.eva-btn-primary:disabled,
.eva-btn-primary[aria-disabled='true'] {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.eva-btn-primary:disabled:hover,
.eva-btn-primary[aria-disabled='true']:hover {
  transform: none;
  box-shadow: none;
}

/* Manutenções — subtítulo */
.eva-maint-guide-line {
  margin: 8px 0 0;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-light, #94a3b8);
}

.eva-guide--finalize .eva-finalize-lead,
.eva-guide--done .eva-done-lead {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.55;
  color: var(--text-secondary, #64748b);
}
