.po-automation{padding-bottom:80px}.po-auto-kpis{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:20px;margin:24px 0}.po-auto-kpis article{min-height:138px;padding:22px 24px;border:1px solid #d7e1ee;border-radius:22px;background:#fff;box-shadow:0 16px 34px rgba(15,39,76,.06);display:flex;flex-direction:column;justify-content:space-between}.po-auto-kpis span{font-size:15px;color:#60728d}.po-auto-kpis strong{font-size:38px;line-height:1;color:#0d2348}.po-auto-tabs{display:flex;gap:12px;flex-wrap:wrap;margin:0 0 28px}.po-auto-tabs a{padding:15px 22px;border-radius:16px;background:#edf2f8;color:#10284f;font-weight:700;text-decoration:none}.po-auto-tabs a.is-active{background:#143463;color:#fff}.po-auto-card{padding:30px;border:1px solid #d7e1ee;border-radius:24px;background:#fff;box-shadow:0 16px 36px rgba(15,39,76,.06)}.po-auto-card-head{display:flex;justify-content:space-between;gap:20px;margin-bottom:24px}.po-auto-card-head h2{margin:0 0 8px;font-size:28px}.po-auto-card-head p{margin:0;color:#64758e}.po-auto-empty{padding:54px 24px;text-align:center;border-radius:18px;background:#f6f9fc}.po-auto-grid{display:grid;gap:18px}.po-auto-workflow{padding:24px;border:1px solid #dce5f0;border-radius:20px;background:#fbfdff}.po-auto-workflow-top strong{display:block;margin:12px 0 6px;font-size:20px}.po-auto-workflow-top p{margin:0;color:#63738c}.po-auto-status{display:inline-flex;padding:6px 10px;border-radius:999px;font-size:12px;font-weight:800}.po-auto-status.is-active,.po-auto-status.is-completed{background:#e5f8ee;color:#16683c}.po-auto-status.is-paused,.po-auto-status.is-skipped{background:#edf1f6;color:#51637e}.po-auto-status.is-failed{background:#ffe9e7;color:#a5261d}.po-auto-flow{display:grid;grid-template-columns:1fr auto 1fr auto 1fr;align-items:stretch;gap:12px;margin:22px 0}.po-auto-flow>div{padding:16px;border-radius:15px;background:#f1f6fb}.po-auto-flow small{display:block;margin-bottom:6px;color:#667892}.po-auto-flow span{align-self:center;font-size:24px;color:#1f67d2}.po-auto-meta,.po-auto-actions{display:flex;gap:16px;flex-wrap:wrap;align-items:center}.po-auto-meta{padding-top:16px;border-top:1px solid #e1e8f1;color:#687991;font-size:13px}.po-auto-actions{margin-top:16px}.po-auto-actions form{margin:0}.po-auto-form{margin:0!important;padding:0!important;border:0!important;box-shadow:none!important}.po-auto-form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}.po-auto-form label{display:flex;flex-direction:column;gap:8px;font-weight:700}.po-auto-form label.is-wide{grid-column:1/-1}.po-auto-form input,.po-auto-form select,.po-auto-form textarea{width:100%;min-height:52px;padding:12px 14px;border:1px solid #cfdaea;border-radius:13px;background:#fff;font:inherit;box-sizing:border-box}.po-auto-builder{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px;margin:28px 0}.po-auto-builder section{position:relative;padding:24px;border:1px solid #dbe4ef;border-radius:20px;background:#f8fbfe}.po-auto-builder h3{margin:8px 0}.po-auto-builder p{color:#65768f}.po-auto-step{display:inline-grid;place-items:center;width:34px;height:34px;border-radius:50%;background:#143463;color:#fff;font-weight:800}.po-auto-condition,.po-auto-action-fields{display:grid;gap:12px}.po-auto-check{flex-direction:row!important;align-items:center!important;margin:0 0 20px}.po-auto-check input{width:20px!important;min-height:20px!important}.po-auto-table-wrap{overflow:auto}.po-auto-table{width:100%;border-collapse:collapse}.po-auto-table th,.po-auto-table td{padding:15px;border-bottom:1px solid #e3eaf2;text-align:left}.po-auto-flash,.po-auto-notice{margin:18px 0;padding:15px 18px;border:1px solid #b9d2f5;border-radius:14px;background:#eef6ff;color:#174f98}.po-mini-button{min-height:40px;padding:8px 14px;border:1px solid #cad6e6;border-radius:11px;background:#fff;color:#15335f;font-weight:700;cursor:pointer}.po-mini-button.is-danger{color:#a6261d;background:#fff3f1;border-color:#f2c9c5}@media(max-width:1000px){.po-auto-kpis{grid-template-columns:repeat(2,1fr)}.po-auto-builder{grid-template-columns:1fr}.po-auto-flow{grid-template-columns:1fr}.po-auto-flow>span{transform:rotate(90deg);justify-self:center}}@media(max-width:640px){.po-auto-kpis,.po-auto-form-grid{grid-template-columns:1fr}.po-auto-card{padding:22px}.po-auto-kpis article{min-height:120px}.po-auto-tabs{display:grid}.po-auto-tabs a{text-align:center}}

/* PolarOne 0.50.9 — definitive Automation Engine layout polish */
.po-automation.po-crm-page{
  width:100%;
  max-width:none;
  padding-bottom:72px;
}
.po-automation .po-page-header{
  align-items:flex-end;
  gap:28px;
  margin-bottom:26px;
}
.po-automation .po-page-header h1{margin:8px 0 10px;line-height:1.05}
.po-automation .po-page-header p{margin:0;max-width:760px}
.po-automation .po-page-header .po-button{flex:0 0 auto;white-space:nowrap}

.po-automation .po-auto-kpis{
  display:grid!important;
  grid-template-columns:repeat(4,minmax(0,1fr))!important;
  gap:20px!important;
  margin:26px 0 24px!important;
}
.po-automation .po-auto-kpis article{
  min-height:0!important;
  height:auto!important;
  padding:20px 22px!important;
  border:1px solid #d8e2ee!important;
  border-radius:20px!important;
  background:#fff!important;
  box-shadow:0 14px 30px rgba(15,39,76,.055)!important;
  display:block!important;
  overflow:visible!important;
}
.po-automation .po-auto-kpis article span{
  display:block!important;
  margin:0 0 22px!important;
  color:#61738d!important;
  font-size:15px!important;
  font-weight:600!important;
  line-height:1.35!important;
  overflow:visible!important;
}
.po-automation .po-auto-kpis article strong{
  display:block!important;
  margin:0!important;
  color:#0d2348!important;
  font-size:38px!important;
  line-height:1!important;
}

.po-automation .po-auto-tabs{margin:0 0 28px!important;gap:12px!important}
.po-automation .po-auto-tabs a{padding:15px 24px!important;border-radius:16px!important}

.po-automation .po-auto-card{
  padding:32px!important;
  border:1px solid #d8e2ee!important;
  border-radius:24px!important;
  box-shadow:0 16px 36px rgba(15,39,76,.055)!important;
  overflow:visible!important;
}
.po-automation .po-auto-card-head{
  margin:0 0 26px!important;
  padding:0 0 22px!important;
  border-bottom:1px solid #e1e8f1!important;
}
.po-automation .po-auto-card-head h2{margin:0 0 8px!important;font-size:28px!important;line-height:1.15!important}
.po-automation .po-auto-card-head p{margin:0!important;line-height:1.55!important}

.po-automation form.po-auto-form{
  display:block!important;
  margin:0!important;
  padding:0!important;
  border:0!important;
  border-radius:0!important;
  background:transparent!important;
  box-shadow:none!important;
  overflow:visible!important;
}
.po-automation .po-auto-form-grid{
  display:grid!important;
  grid-template-columns:repeat(2,minmax(0,1fr))!important;
  gap:22px 24px!important;
  margin:0!important;
  padding:0!important;
  border:0!important;
}
.po-automation .po-auto-form label,
.po-automation .po-auto-form-grid label{
  display:flex!important;
  flex-direction:column!important;
  gap:9px!important;
  min-width:0!important;
  margin:0!important;
  padding:0!important;
  border:0!important;
  border-radius:0!important;
  background:transparent!important;
  box-shadow:none!important;
  color:#10284f!important;
  font-size:15px!important;
  font-weight:700!important;
  line-height:1.35!important;
}
.po-automation .po-auto-form label>span{
  display:block!important;
  margin:0!important;
  padding:0!important;
  border:0!important;
  background:transparent!important;
}
.po-automation .po-auto-form label.is-wide{grid-column:1/-1!important}
.po-automation .po-auto-form input:not([type=checkbox]),
.po-automation .po-auto-form select,
.po-automation .po-auto-form textarea{
  display:block!important;
  width:100%!important;
  max-width:100%!important;
  min-width:0!important;
  min-height:58px!important;
  margin:0!important;
  padding:14px 18px!important;
  border:1px solid #cedbea!important;
  border-radius:14px!important;
  outline:0!important;
  background:#fff!important;
  box-shadow:none!important;
  color:#10213f!important;
  font:inherit!important;
  line-height:1.45!important;
  box-sizing:border-box!important;
}
.po-automation .po-auto-form input:focus,
.po-automation .po-auto-form select:focus,
.po-automation .po-auto-form textarea:focus{
  border-color:#2e7de1!important;
  box-shadow:0 0 0 3px rgba(46,125,225,.12)!important;
}
.po-automation .po-auto-form-grid textarea{
  height:120px!important;
  min-height:120px!important;
  resize:vertical!important;
}

.po-automation .po-auto-builder{
  display:grid!important;
  grid-template-columns:repeat(3,minmax(0,1fr))!important;
  align-items:stretch!important;
  gap:20px!important;
  margin:28px 0 22px!important;
}
.po-automation .po-auto-builder>section{
  display:flex!important;
  flex-direction:column!important;
  min-width:0!important;
  min-height:0!important;
  margin:0!important;
  padding:24px!important;
  border:1px solid #d9e3ef!important;
  border-radius:20px!important;
  background:#f8fbfe!important;
  box-shadow:none!important;
  overflow:visible!important;
}
.po-automation .po-auto-builder h3{
  margin:14px 0 12px!important;
  font-size:24px!important;
  line-height:1.15!important;
}
.po-automation .po-auto-builder p{margin:0!important;line-height:1.55!important}
.po-automation .po-auto-step{flex:0 0 auto!important}
.po-automation .po-auto-condition,
.po-automation .po-auto-action-fields{
  display:grid!important;
  gap:14px!important;
  margin-top:4px!important;
}
.po-automation .po-auto-builder textarea{
  height:150px!important;
  min-height:150px!important;
  resize:vertical!important;
}
.po-automation .po-auto-check{
  display:flex!important;
  flex-direction:row!important;
  align-items:center!important;
  gap:12px!important;
  width:auto!important;
  margin:2px 0 22px!important;
  padding:0!important;
  border:0!important;
  background:transparent!important;
}
.po-automation .po-auto-check input[type=checkbox]{
  flex:0 0 22px!important;
  width:22px!important;
  height:22px!important;
  min-height:22px!important;
  margin:0!important;
  padding:0!important;
}
.po-automation .po-auto-form>.po-button{min-width:190px!important}

@media(max-width:1100px){
  .po-automation .po-auto-kpis{grid-template-columns:repeat(2,minmax(0,1fr))!important}
  .po-automation .po-auto-builder{grid-template-columns:1fr!important}
  .po-automation .po-auto-builder>section{padding:22px!important}
}
@media(max-width:700px){
  .po-automation .po-page-header{align-items:flex-start!important;flex-direction:column!important}
  .po-automation .po-page-header .po-button{width:100%!important;text-align:center!important}
  .po-automation .po-auto-kpis{grid-template-columns:1fr!important;gap:14px!important}
  .po-automation .po-auto-kpis article span{margin-bottom:14px!important}
  .po-automation .po-auto-tabs{display:grid!important;grid-template-columns:1fr!important}
  .po-automation .po-auto-card{padding:22px!important;border-radius:20px!important}
  .po-automation .po-auto-form-grid{grid-template-columns:1fr!important;gap:18px!important}
  .po-automation .po-auto-form label.is-wide{grid-column:auto!important}
  .po-automation .po-auto-builder{gap:16px!important;margin-top:22px!important}
  .po-automation .po-auto-form>.po-button{width:100%!important}
}
