/* ===== Página de automação (enxuta) ===== */
.auto-body { background: var(--bg); }

.auto-page { max-width: 880px; margin: 0 auto; padding: 40px 24px 64px; }

.auto-head { text-align: center; margin-bottom: 36px; }
.auto-badge {
  display: inline-block; font-size: .82rem; font-weight: 700; color: var(--primary);
  background: rgba(61,123,242,.1); padding: 6px 16px; border-radius: 999px; margin-bottom: 18px;
}
.auto-head h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); margin-bottom: 12px; }
.auto-head h1 .g { background: var(--grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.auto-head p { color: var(--text-dim); font-size: 1.05rem; max-width: 560px; margin: 0 auto 22px; }

.auto-status { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; font-size: .92rem; color: var(--ok); }
.auto-status.off { color: var(--text-dim); }
.auto-status .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 4px rgba(34,160,107,.15); }
.auto-status.off .dot { background: var(--text-dim); box-shadow: 0 0 0 4px rgba(107,120,150,.15); }

/* switch */
.switch { width: 44px; height: 25px; border-radius: 999px; background: #cdd5e6; position: relative; cursor: pointer; transition: background .25s; }
.switch.on { background: var(--grad); }
.switch i { position: absolute; top: 3px; left: 3px; width: 19px; height: 19px; border-radius: 50%; background: #fff; box-shadow: 0 2px 5px rgba(0,0,0,.2); transition: left .25s; }
.switch.on i { left: 22px; }

/* fluxo */
.flow-card { margin-bottom: 24px; }
.flow { display: flex; align-items: stretch; justify-content: center; gap: 4px; flex-wrap: wrap; }
.flow-node {
  flex: 1; min-width: 150px; text-align: center; background: var(--bg);
  border: 1px solid var(--border); border-radius: 14px; padding: 18px 14px; transition: transform .2s, box-shadow .2s;
}
.flow-node:hover { transform: translateY(-3px); box-shadow: var(--shadow-sm); }
.flow-node .fn-ic { font-size: 1.7rem; display: block; margin-bottom: 8px; }
.flow-node strong { display: block; font-family: 'Space Grotesk'; font-size: .95rem; margin-bottom: 3px; }
.flow-node small { color: var(--text-dim); font-size: .76rem; }
.flow-node.trigger { border-color: rgba(122,108,235,.5); background: rgba(122,108,235,.06); }
.flow-node.action { border-color: rgba(61,123,242,.45); background: rgba(61,123,242,.06); }
.flow-arrow { display: flex; align-items: center; color: var(--primary); font-size: 1.4rem; font-weight: 700; }

/* kpis menores */
.auto-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 24px; }

.auto-foot { text-align: center; color: var(--text-dim); font-size: .9rem; background: var(--surface); border: 1px dashed var(--border); border-radius: 12px; padding: 16px 20px; margin-top: 8px; }

@media (max-width: 720px) {
  .auto-kpis { grid-template-columns: 1fr; }
  .flow-arrow { transform: rotate(90deg); width: 100%; justify-content: center; padding: 2px 0; }
  .flow-node { width: 100%; flex: none; }
}
