.wflb-form-shell{max-width:620px;width:100%;font-family:Inter,Arial,sans-serif}.wflb-form{background:rgba(255,255,255,.98);border:1px solid rgba(15,23,42,.08);box-shadow:0 24px 80px rgba(15,23,42,.12);border-radius:28px;padding:30px}.wflb-badge{display:inline-flex;padding:8px 12px;border-radius:999px;background:#edf5ff;color:#1769ff;font-weight:900;font-size:13px;margin-bottom:14px}.wflb-form h3{margin:0 0 10px;font-size:28px;line-height:1.15;color:#0f172a}.wflb-desc{margin:0 0 22px;color:#64748b;font-size:16px;line-height:1.55}.wflb-fields{display:grid;gap:14px}.wflb-field{display:grid;gap:7px}.wflb-field span{font-size:13px;font-weight:700;color:#334155}.wflb-field input,.wflb-field textarea{width:100%;box-sizing:border-box;border:1px solid #dbe3ef;background:#f8fafc;border-radius:16px;padding:15px 16px;font-size:16px;outline:none;transition:.2s}.wflb-field input:focus,.wflb-field textarea:focus{border-color:#1769ff;background:#fff;box-shadow:0 0 0 4px rgba(23,105,255,.12)}.wflb-field textarea{min-height:110px;resize:vertical}.wflb-submit-wrap{display:flex;justify-content:center;margin-top:22px}.wflb-submit{appearance:none;border:0;cursor:pointer;position:relative;overflow:hidden;background:linear-gradient(135deg,#1769ff 0%,#0ea5e9 100%);color:#fff!important;border-radius:18px;padding:18px 34px;min-width:250px;font-size:18px;font-weight:900;line-height:1.2;letter-spacing:.01em;box-shadow:0 18px 42px rgba(23,105,255,.30);transition:.22s}.wflb-submit:before{content:"";position:absolute;inset:-40% auto auto -30%;width:45%;height:180%;background:linear-gradient(90deg,transparent,rgba(255,255,255,.45),transparent);transform:rotate(18deg);transition:.55s}.wflb-submit:hover{transform:translateY(-2px);box-shadow:0 22px 52px rgba(23,105,255,.38)}.wflb-submit:hover:before{left:110%}.wflb-result{margin-top:14px;text-align:center;font-weight:700}.wflb-result.ok{color:#16a34a}.wflb-result.err{color:#dc2626}.wflb-popup-open{border:0;cursor:pointer;position:relative;overflow:hidden;background:linear-gradient(135deg,#1769ff,#0ea5e9);color:#fff;border-radius:18px;padding:18px 32px;font-size:18px;font-weight:900;box-shadow:0 18px 42px rgba(23,105,255,.30);transition:.2s}.wflb-popup-open:hover{transform:translateY(-2px)}.wflb-modal{position:fixed;inset:0;z-index:999999;display:none;align-items:center;justify-content:center;padding:20px}.wflb-modal.is-open{display:flex}.wflb-modal-backdrop{position:absolute;inset:0;background:rgba(15,23,42,.56);backdrop-filter:blur(10px)}.wflb-modal-dialog{position:relative;z-index:1;width:min(640px,100%);max-height:92vh;overflow:auto}.wflb-modal-close{position:absolute;right:14px;top:14px;z-index:5;width:38px;height:38px;border:0;border-radius:50%;background:#fff;color:#0f172a;font-size:26px;line-height:1;cursor:pointer;box-shadow:0 10px 30px rgba(15,23,42,.18)}@media(max-width:640px){.wflb-form{padding:22px;border-radius:22px}.wflb-form h3{font-size:23px}.wflb-submit{width:100%;min-width:0}}

/* v3.5 */
.wflb-submit{font-size:18px!important}.wflb-field input:invalid,.wflb-field textarea:invalid{border-color:#dbe3ef!important;box-shadow:none!important}.wflb-field input:focus:invalid,.wflb-field textarea:focus:invalid{border-color:#1769ff!important;box-shadow:0 0 0 4px rgba(23,105,255,.12)!important}.wflb-submit:focus,.wflb-popup-open:focus{outline:none!important;box-shadow:0 18px 42px rgba(23,105,255,.30),0 0 0 4px rgba(23,105,255,.16)!important}


/* v3.6 — flat popup/form mode */
.wflb-form-shell{max-width:100%;width:100%;}
.wflb-form{background:transparent!important;border:0!important;box-shadow:none!important;border-radius:0!important;padding:0!important;}
.wflb-modal-dialog{position:relative;z-index:1;width:min(640px,100%);max-height:92vh;overflow:auto;background:#fff;border-radius:28px;padding:34px 30px;box-shadow:0 30px 90px rgba(15,23,42,.24);}
.wflb-modal .wflb-form-shell{max-width:100%;}
.wflb-submit{border:0!important;outline:0!important;text-decoration:none!important;font-size:18px!important;font-family:inherit!important;background:linear-gradient(135deg,#1769ff 0%,#0ea5e9 100%)!important;color:#fff!important;box-shadow:0 18px 42px rgba(23,105,255,.30)!important;}
.wflb-submit:hover{border:0!important;outline:0!important;box-shadow:0 22px 52px rgba(23,105,255,.38)!important;}
.wflb-submit:focus,.wflb-submit:focus-visible,.wflb-submit:active{border:0!important;outline:0!important;box-shadow:0 18px 42px rgba(23,105,255,.30),0 0 0 4px rgba(23,105,255,.16)!important;}
@media(max-width:640px){.wflb-modal-dialog{padding:26px 22px;border-radius:24px}.wflb-form{padding:0!important}}

/* v3.7 — centered top element */
.wflb-badge-wrap{display:flex;justify-content:center;margin-bottom:14px;}
.wflb-badge{margin-bottom:0;text-align:center;}
.wflb-logo{display:flex;justify-content:center;align-items:center;margin:0 0 18px;}
.wflb-logo img{display:block;max-width:min(220px,70%);max-height:78px;width:auto;height:auto;object-fit:contain;}


/* v3.8 — centered compact title */
.wflb-form h3{
  text-align:center!important;
  font-size:34px!important;
  line-height:1.12!important;
  letter-spacing:-.03em;
}
.wflb-desc{
  text-align:center!important;
}
@media(max-width:640px){
  .wflb-form h3{
    font-size:26px!important;
    line-height:1.15!important;
    max-width:100%;
  }
  .wflb-desc{font-size:15px!important;}
}
@media(max-width:390px){
  .wflb-form h3{font-size:24px!important;}
}

/* v3.9 — legal consent checkbox */
.wflb-consent{display:flex;align-items:flex-start;gap:11px;margin:16px auto 0;max-width:560px;color:#64748b;font-size:13px;line-height:1.45;text-align:left;}
.wflb-consent input{appearance:none;-webkit-appearance:none;flex:0 0 20px;width:20px;height:20px;margin:1px 0 0;border:1.5px solid #cbd5e1;border-radius:7px;background:#fff;cursor:pointer;position:relative;transition:.18s;}
.wflb-consent input:checked{background:#1769ff;border-color:#1769ff;box-shadow:0 8px 20px rgba(23,105,255,.22);}
.wflb-consent input:checked:after{content:"";position:absolute;left:6px;top:3px;width:5px;height:10px;border:solid #fff;border-width:0 2px 2px 0;transform:rotate(45deg);}
.wflb-consent input:focus{outline:none;box-shadow:0 0 0 4px rgba(23,105,255,.13);}
.wflb-consent a{color:#1769ff;text-decoration:none;font-weight:800;margin-left:4px;}
.wflb-consent a:hover{text-decoration:underline;}
@media(max-width:640px){.wflb-consent{font-size:12.5px;line-height:1.42}.wflb-consent input{width:19px;height:19px;flex-basis:19px}}

/* v4.1 — frontend CRM */
.wflb-front-crm,.wflb-front-crm *{box-sizing:border-box}.wflb-front-crm{width:100vw;margin-left:calc(50% - 50vw);padding:34px clamp(14px,3vw,46px) 56px;background:linear-gradient(135deg,#f7fbff 0%,#eef6ff 48%,#f8fafc 100%);font-family:Inter,Arial,sans-serif;color:#0f172a;min-height:100vh}.wflb-crm-hero{display:flex;justify-content:space-between;gap:24px;align-items:flex-start;width:min(1560px,100%);margin:0 auto 18px;padding:28px 30px;border:1px solid rgba(23,105,255,.12);border-radius:28px;background:rgba(255,255,255,.72);box-shadow:0 22px 70px rgba(15,23,42,.07);backdrop-filter:blur(14px)}.wflb-crm-hero span{display:inline-flex;margin-bottom:8px;color:#1769ff;font-size:12px;font-weight:900;letter-spacing:.12em;text-transform:uppercase}.wflb-crm-hero h1{margin:0;font-size:clamp(30px,4vw,54px);line-height:1.02;letter-spacing:-.05em;font-weight:950;color:#0f172a}.wflb-crm-hero p{max-width:650px;margin:12px 0 0;color:#64748b;font-size:17px;line-height:1.5}.wflb-crm-hero-actions a,.wflb-crm-filters button,.wflb-crm-card-form button{display:inline-flex;align-items:center;justify-content:center;border:0;border-radius:16px;background:linear-gradient(135deg,#1769ff,#0ea5e9);color:#fff!important;text-decoration:none!important;font-weight:900;box-shadow:0 16px 36px rgba(23,105,255,.22);cursor:pointer}.wflb-crm-hero-actions a{padding:14px 18px;white-space:nowrap}.wflb-crm-stats{width:min(1560px,100%);margin:0 auto 18px;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}.wflb-crm-stats>div{padding:18px 20px;border-radius:22px;background:#fff;border:1px solid #e5edf7;box-shadow:0 16px 44px rgba(15,23,42,.055)}.wflb-crm-stats span{display:block;color:#64748b;font-size:13px;font-weight:850}.wflb-crm-stats strong{display:block;margin-top:7px;color:#1769ff;font-size:36px;line-height:1;font-weight:950}.wflb-crm-filters{width:min(1560px,100%);margin:0 auto 20px;display:grid;grid-template-columns:1.5fr .85fr 1fr .72fr .72fr auto auto;gap:10px;align-items:end;padding:14px;border-radius:24px;background:rgba(255,255,255,.82);border:1px solid #e5edf7;box-shadow:0 16px 44px rgba(15,23,42,.05)}.wflb-crm-filters label,.wflb-crm-card-form label{display:grid;gap:6px}.wflb-crm-filters span,.wflb-crm-card-form span{color:#64748b;font-size:12px;font-weight:850}.wflb-crm-filters input,.wflb-crm-filters select,.wflb-crm-card-form input,.wflb-crm-card-form select,.wflb-crm-card-form textarea{width:100%;border:1px solid #dbe5f1!important;border-radius:14px!important;background:#f8fafc!important;color:#0f172a!important;padding:12px 13px!important;box-shadow:none!important;outline:none!important;font:inherit!important}.wflb-crm-filters input:focus,.wflb-crm-filters select:focus,.wflb-crm-card-form input:focus,.wflb-crm-card-form select:focus,.wflb-crm-card-form textarea:focus{background:#fff!important;border-color:#1769ff!important;box-shadow:0 0 0 4px rgba(23,105,255,.10)!important}.wflb-crm-filters button{height:44px;padding:0 18px;font-size:14px}.wflb-crm-reset{height:44px;display:inline-flex;align-items:center;justify-content:center;padding:0 14px;border-radius:14px;background:#eef6ff;color:#1769ff!important;text-decoration:none!important;font-weight:900}.wflb-crm-kanban{width:min(1560px,100%);margin:0 auto;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}.wflb-crm-col{min-width:0;border-radius:26px;background:rgba(248,250,252,.88);border:1px solid #dfe9f5;padding:14px;transition:.2s}.wflb-crm-col.is-over{background:#eef6ff;border-color:#1769ff;box-shadow:0 0 0 4px rgba(23,105,255,.10)}.wflb-crm-col-head{display:flex;align-items:center;justify-content:space-between;margin:4px 4px 14px}.wflb-crm-col-head h2{margin:0;color:#0f172a;font-size:19px;line-height:1.2;font-weight:950}.wflb-crm-col-head span{min-width:32px;height:32px;display:inline-flex;align-items:center;justify-content:center;border-radius:999px;background:#fff;border:1px solid #dbe5f1;color:#1769ff;font-weight:950}.wflb-crm-drop{display:grid;gap:12px;min-height:190px}.wflb-crm-empty{display:flex;align-items:center;justify-content:center;min-height:150px;color:#94a3b8;font-weight:800;border:1px dashed #cbd5e1;border-radius:20px}.wflb-crm-card{background:#fff;border:1px solid #e5edf7;border-radius:22px;padding:15px;box-shadow:0 15px 42px rgba(15,23,42,.065);cursor:grab;transition:.2s}.wflb-crm-card:hover{transform:translateY(-2px);box-shadow:0 20px 54px rgba(15,23,42,.09)}.wflb-crm-card.is-dragging{opacity:.56;transform:rotate(-1deg)}.wflb-crm-card-top{display:flex;align-items:flex-start;justify-content:space-between;gap:10px}.wflb-crm-card-top strong{display:block;font-size:17px;line-height:1.25;color:#0f172a;font-weight:950}.wflb-crm-card-top small{display:block;margin-top:4px;color:#94a3b8;font-weight:750}.wflb-crm-status{flex:0 0 auto;display:inline-flex;align-items:center;justify-content:center;border-radius:999px;padding:6px 10px;font-size:11px;line-height:1;font-weight:950}.wflb-crm-status-new{background:#dbeafe;color:#1d4ed8}.wflb-crm-status-work{background:#fef3c7;color:#92400e}.wflb-crm-status-closed{background:#dcfce7;color:#166534}.wflb-crm-meta{display:flex;flex-wrap:wrap;gap:7px;margin-top:12px}.wflb-crm-meta a,.wflb-crm-meta span{display:inline-flex;align-items:center;min-height:30px;padding:6px 9px;border-radius:999px;background:#f1f5f9;color:#334155!important;text-decoration:none!important;font-size:12px;font-weight:900}.wflb-crm-meta a{background:#eef6ff;color:#1769ff!important}.wflb-crm-source{display:flex;justify-content:space-between;gap:10px;align-items:center;margin-top:12px;padding:10px 11px;border-radius:16px;background:#f8fafc;color:#64748b;font-size:12px;line-height:1.35}.wflb-crm-source a{color:#1769ff!important;text-decoration:none!important;font-weight:950;white-space:nowrap}.wflb-crm-task{margin-top:10px;padding:10px 11px;border-radius:16px;background:#fffbeb;color:#92400e;font-size:13px;line-height:1.35}.wflb-crm-task small{display:block;margin-top:5px;color:#b45309;font-weight:900}.wflb-crm-details{margin-top:12px}.wflb-crm-details summary{cursor:pointer;color:#1769ff;font-size:13px;font-weight:950}.wflb-crm-fields{display:grid;gap:8px;margin:12px 0}.wflb-crm-fields>div{display:grid;gap:4px;padding:9px 10px;border-radius:14px;background:#f8fafc}.wflb-crm-fields span{color:#64748b;font-size:12px;font-weight:850}.wflb-crm-fields b{font-size:14px;line-height:1.4;color:#0f172a;word-break:break-word}.wflb-crm-card-form{display:grid;gap:10px;margin-top:10px}.wflb-crm-card-form button{min-height:42px;padding:10px 16px;font-size:14px}.wflb-crm-save-result{display:block;min-height:18px;color:#16a34a;font-style:normal;font-size:12px;font-weight:900}.wflb-crm-save-result.is-err{color:#dc2626}.wflb-crm-admin-link{display:inline-flex;margin-top:8px;color:#64748b!important;text-decoration:none!important;font-size:12px;font-weight:850}.wflb-crm-note,.wflb-crm-denied{width:min(1560px,100%);margin:18px auto 0;padding:14px 16px;border-radius:18px;background:#fff;border:1px solid #e5edf7;color:#64748b;font-size:14px;line-height:1.5}.wflb-crm-login{display:flex;align-items:center;justify-content:center}.wflb-crm-login-card{width:min(460px,100%);padding:28px;border-radius:28px;background:#fff;border:1px solid #e5edf7;box-shadow:0 24px 70px rgba(15,23,42,.10)}.wflb-crm-login-card h2{margin:0 0 8px;font-size:34px;letter-spacing:-.04em}.wflb-crm-login-card p{margin:0 0 18px;color:#64748b}.wflb-crm-login-card input{width:100%;border-radius:14px!important;border:1px solid #dbe5f1!important;padding:12px!important}.wflb-crm-login-card .button{width:100%;border:0!important;border-radius:16px!important;background:#1769ff!important;color:#fff!important;font-weight:900!important;padding:10px 16px!important}.wflb-crm-login-card .login-remember{font-size:13px;color:#64748b}@media(max-width:1180px){.wflb-crm-filters{grid-template-columns:1fr 1fr}.wflb-crm-kanban{grid-template-columns:1fr}.wflb-crm-stats{grid-template-columns:repeat(2,1fr)}}@media(max-width:680px){.wflb-front-crm{padding:18px 12px 36px}.wflb-crm-hero{display:block;padding:22px}.wflb-crm-hero-actions{margin-top:16px}.wflb-crm-stats,.wflb-crm-filters{grid-template-columns:1fr}.wflb-crm-card-top{display:block}.wflb-crm-status{margin-top:10px}.wflb-crm-source{display:block}.wflb-crm-source a{display:inline-flex;margin-top:7px}.wflb-crm-hero h1{font-size:32px}}

/* v4.2 — CRM transparency, tabs, tables and frontend form editor */
.wflb-front-crm{
  background:transparent!important;
  min-height:auto!important;
  padding-top:22px!important;
}
.wflb-crm-hero,
.wflb-crm-stats>div,
.wflb-crm-filters,
.wflb-crm-col,
.wflb-crm-card,
.wflb-crm-table-wrap,
.wflb-crm-form-card,
.wflb-crm-create-form,
.wflb-crm-login-card{
  background:rgba(255,255,255,.82)!important;
  backdrop-filter:blur(14px);
  -webkit-backdrop-filter:blur(14px);
}
.wflb-crm-tabs{
  width:min(1560px,100%);
  margin:0 auto 16px;
  display:flex;
  gap:10px;
  flex-wrap:wrap;
}
.wflb-crm-tabs a{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:42px;
  padding:10px 16px;
  border-radius:999px;
  border:1px solid #dbe5f1;
  background:rgba(255,255,255,.72);
  color:#334155!important;
  text-decoration:none!important;
  font-size:14px;
  font-weight:950;
  box-shadow:0 10px 26px rgba(15,23,42,.045);
}
.wflb-crm-tabs a.is-active{
  border-color:rgba(23,105,255,.34);
  background:linear-gradient(135deg,#1769ff,#0ea5e9)!important;
  color:#fff!important;
  box-shadow:0 14px 34px rgba(23,105,255,.20);
}
.wflb-crm-stats{grid-template-columns:repeat(5,minmax(0,1fr))!important;}
.wflb-crm-card-actions,
.wflb-crm-form-actions{
  display:flex;
  align-items:center;
  gap:10px;
  flex-wrap:wrap;
}
.wflb-crm-card-actions button[type="button"],
.wflb-crm-remove-field{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:42px;
  padding:10px 14px;
  border:0;
  border-radius:14px;
  background:#fee2e2!important;
  color:#991b1b!important;
  font-weight:950;
  cursor:pointer;
}
.wflb-crm-table-wrap{
  width:min(1560px,100%);
  margin:0 auto;
  border:1px solid #e5edf7;
  border-radius:24px;
  overflow:auto;
  box-shadow:0 16px 44px rgba(15,23,42,.055);
}
.wflb-crm-table{
  width:100%;
  border-collapse:collapse;
  min-width:980px;
  font-family:Inter,Arial,sans-serif;
}
.wflb-crm-table th,
.wflb-crm-table td{
  padding:14px 16px;
  border-bottom:1px solid #edf2f7;
  text-align:left;
  vertical-align:top;
  font-size:14px;
  line-height:1.45;
  color:#334155;
}
.wflb-crm-table th{
  color:#64748b;
  font-size:12px;
  text-transform:uppercase;
  letter-spacing:.08em;
  font-weight:950;
  background:rgba(248,250,252,.76);
}
.wflb-crm-table td strong{color:#0f172a;font-weight:950;}
.wflb-crm-table td a{color:#1769ff!important;text-decoration:none!important;font-weight:900;}
.wflb-crm-table small{color:#94a3b8;font-weight:800;}
.wflb-crm-forms-panel{
  width:min(1560px,100%);
  margin:0 auto;
  display:grid;
  gap:14px;
}
.wflb-crm-create-form{
  display:grid;
  grid-template-columns:minmax(220px,1fr) auto auto;
  gap:10px;
  align-items:center;
  padding:14px;
  border:1px solid #e5edf7;
  border-radius:22px;
  box-shadow:0 16px 44px rgba(15,23,42,.05);
}
.wflb-crm-create-form input,
.wflb-crm-form-editor input,
.wflb-crm-form-editor select,
.wflb-crm-form-editor textarea,
.wflb-crm-field-row input,
.wflb-crm-field-row select{
  width:100%;
  border:1px solid #dbe5f1!important;
  border-radius:14px!important;
  background:#f8fafc!important;
  color:#0f172a!important;
  padding:12px 13px!important;
  box-shadow:none!important;
  outline:none!important;
  font:inherit!important;
}
.wflb-crm-create-form input:focus,
.wflb-crm-form-editor input:focus,
.wflb-crm-form-editor select:focus,
.wflb-crm-form-editor textarea:focus,
.wflb-crm-field-row input:focus,
.wflb-crm-field-row select:focus{
  background:#fff!important;
  border-color:#1769ff!important;
  box-shadow:0 0 0 4px rgba(23,105,255,.10)!important;
}
.wflb-crm-create-form button,
.wflb-crm-form-actions button[type="submit"],
.wflb-crm-add-field,
.wflb-crm-shortcodes button{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:44px;
  padding:10px 16px;
  border:0;
  border-radius:16px;
  background:linear-gradient(135deg,#1769ff,#0ea5e9)!important;
  color:#fff!important;
  text-decoration:none!important;
  font-weight:950;
  cursor:pointer;
  box-shadow:0 16px 36px rgba(23,105,255,.18);
}
.wflb-crm-create-form em,
.wflb-crm-form-result{
  font-style:normal;
  color:#16a34a;
  font-size:13px;
  font-weight:950;
}
.wflb-crm-create-form em.is-err,
.wflb-crm-form-result.is-err{color:#dc2626;}
.wflb-crm-form-card{
  border:1px solid #e5edf7;
  border-radius:24px;
  padding:0;
  overflow:hidden;
  box-shadow:0 16px 44px rgba(15,23,42,.055);
}
.wflb-crm-form-card>summary{
  cursor:pointer;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  padding:18px 20px;
  color:#0f172a;
  font-weight:950;
  list-style:none;
}
.wflb-crm-form-card>summary::-webkit-details-marker{display:none;}
.wflb-crm-form-card>summary strong{font-size:18px;}
.wflb-crm-form-card>summary span{color:#64748b;font-size:13px;font-weight:900;}
.wflb-crm-shortcodes{
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  gap:10px;
  padding:0 20px 18px;
}
.wflb-crm-shortcodes code{
  display:block;
  padding:12px 14px;
  border-radius:14px;
  background:#f8fafc;
  border:1px solid #e5edf7;
  color:#334155;
  white-space:normal;
  word-break:break-all;
}
.wflb-crm-form-editor{
  padding:0 20px 22px;
}
.wflb-crm-form-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:12px;
}
.wflb-crm-form-grid label,
.wflb-crm-form-editor label{
  display:grid;
  gap:6px;
}
.wflb-crm-form-grid label>span,
.wflb-crm-form-editor label>span{
  color:#64748b;
  font-size:12px;
  font-weight:900;
}
.wflb-crm-form-grid .is-wide{grid-column:1/-1;}
.wflb-crm-form-grid .is-check{
  display:flex;
  align-items:center;
  gap:9px;
  min-height:46px;
  padding:11px 12px;
  border:1px solid #e5edf7;
  border-radius:14px;
  background:#f8fafc;
}
.wflb-crm-form-grid .is-check input{width:auto!important;padding:0!important;}
.wflb-crm-form-card h3{
  margin:22px 0 12px;
  font-size:18px;
  line-height:1.2;
  color:#0f172a;
  font-weight:950;
}
.wflb-crm-fields-builder{display:grid;gap:10px;}
.wflb-crm-field-row{
  display:grid;
  grid-template-columns:1fr 1fr 120px 1fr auto auto auto;
  gap:8px;
  align-items:center;
  padding:10px;
  border:1px solid #e5edf7;
  border-radius:18px;
  background:rgba(248,250,252,.82);
}
.wflb-crm-field-row label{
  display:flex;
  align-items:center;
  gap:6px;
  color:#64748b;
  font-size:12px;
  font-weight:900;
  white-space:nowrap;
}
.wflb-crm-field-row label input{width:auto!important;padding:0!important;}
.wflb-crm-add-field{margin-top:12px;background:#eef6ff!important;color:#1769ff!important;box-shadow:none!important;}
.wflb-crm-form-actions{margin-top:16px;}
.wflb-crm-form-preview{
  padding:0 20px 22px;
  border-top:1px solid #edf2f7;
}
.wflb-crm-form-preview .wflb-form-shell{max-width:560px;}
.wflb-crm-key-box{
  display:grid;
  gap:8px;
  margin-top:16px;
  padding:14px;
  border-radius:16px;
  background:#f8fafc;
  border:1px solid #e5edf7;
}
.wflb-crm-key-box span{font-size:12px;color:#64748b;font-weight:900;}
.wflb-crm-key-box code{white-space:normal;word-break:break-all;color:#1769ff;}
@media(max-width:1180px){
  .wflb-crm-stats{grid-template-columns:repeat(2,1fr)!important;}
  .wflb-crm-form-grid{grid-template-columns:1fr 1fr;}
  .wflb-crm-field-row{grid-template-columns:1fr 1fr;}
}
@media(max-width:680px){
  .wflb-crm-stats{grid-template-columns:1fr!important;}
  .wflb-crm-create-form,
  .wflb-crm-form-grid,
  .wflb-crm-shortcodes,
  .wflb-crm-field-row{grid-template-columns:1fr;}
  .wflb-crm-form-card>summary{display:block;}
  .wflb-crm-form-card>summary span{display:block;margin-top:6px;}
}


/* v4.3 — strict transparent CRM page background */
.wflb-front-crm{background:transparent!important;}
.wflb-front-crm:before,.wflb-front-crm:after{display:none!important;content:none!important;}

/* v4.4 — kanban sections, contacts and mobile app mode */
.wflb-crm-kanban-toolbar,
.wflb-crm-contacts-panel,
.wflb-crm-contact-detail{
  width:min(1560px,100%);
  margin:0 auto 16px;
}
.wflb-crm-add-status{
  display:grid;
  grid-template-columns:minmax(220px,1fr) auto auto;
  gap:10px;
  align-items:center;
  padding:14px;
  border:1px solid #e5edf7;
  border-radius:22px;
  background:rgba(255,255,255,.82)!important;
  backdrop-filter:blur(14px);
  -webkit-backdrop-filter:blur(14px);
  box-shadow:0 16px 44px rgba(15,23,42,.05);
}
.wflb-crm-add-status input,
.wflb-crm-contact-form input,
.wflb-crm-contact-form textarea{
  width:100%;
  border:1px solid #dbe5f1!important;
  border-radius:14px!important;
  background:#f8fafc!important;
  color:#0f172a!important;
  padding:12px 13px!important;
  box-shadow:none!important;
  outline:none!important;
  font:inherit!important;
}
.wflb-crm-add-status input:focus,
.wflb-crm-contact-form input:focus,
.wflb-crm-contact-form textarea:focus{
  background:#fff!important;
  border-color:#1769ff!important;
  box-shadow:0 0 0 4px rgba(23,105,255,.10)!important;
}
.wflb-crm-add-status button,
.wflb-crm-contact-form button{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:44px;
  padding:10px 16px;
  border:0;
  border-radius:16px;
  background:linear-gradient(135deg,#1769ff,#0ea5e9)!important;
  color:#fff!important;
  text-decoration:none!important;
  font-weight:950;
  cursor:pointer;
  box-shadow:0 16px 36px rgba(23,105,255,.18);
}
.wflb-crm-add-status em,
.wflb-crm-contact-result{font-style:normal;color:#16a34a;font-size:13px;font-weight:950;}
.wflb-crm-add-status em.is-err,
.wflb-crm-contact-result.is-err{color:#dc2626;}
.wflb-crm-col-actions{display:flex;align-items:center;gap:8px;}
.wflb-crm-delete-status{
  width:32px;
  height:32px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border:0;
  border-radius:999px;
  background:#fee2e2!important;
  color:#991b1b!important;
  font-size:20px;
  line-height:1;
  font-weight:950;
  cursor:pointer;
}
.wflb-crm-contact-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:14px;
}
.wflb-crm-contact-card{
  display:grid;
  gap:8px;
  min-height:168px;
  padding:18px;
  border:1px solid #e5edf7;
  border-radius:24px;
  background:rgba(255,255,255,.82)!important;
  backdrop-filter:blur(14px);
  -webkit-backdrop-filter:blur(14px);
  color:#334155!important;
  text-decoration:none!important;
  box-shadow:0 16px 44px rgba(15,23,42,.055);
  transition:.2s;
}
.wflb-crm-contact-card:hover{transform:translateY(-2px);box-shadow:0 20px 54px rgba(15,23,42,.09);}
.wflb-crm-contact-card strong{display:block;color:#0f172a;font-size:20px;line-height:1.2;font-weight:950;}
.wflb-crm-contact-card span{color:#334155;font-size:14px;font-weight:850;word-break:break-word;}
.wflb-crm-contact-card em{font-style:normal;color:#1769ff;font-size:13px;font-weight:950;}
.wflb-crm-contact-card small{margin-top:auto;color:#94a3b8;font-size:12px;font-weight:900;}
.wflb-crm-back{
  display:inline-flex;
  align-items:center;
  min-height:42px;
  padding:10px 14px;
  margin-bottom:14px;
  border-radius:999px;
  background:rgba(255,255,255,.82);
  border:1px solid #e5edf7;
  color:#1769ff!important;
  text-decoration:none!important;
  font-weight:950;
}
.wflb-crm-contact-layout{
  display:grid;
  grid-template-columns:minmax(280px,390px) minmax(0,1fr);
  gap:16px;
  align-items:start;
}
.wflb-crm-contact-profile,
.wflb-crm-contact-history{
  border:1px solid #e5edf7;
  border-radius:26px;
  background:rgba(255,255,255,.82)!important;
  backdrop-filter:blur(14px);
  -webkit-backdrop-filter:blur(14px);
  box-shadow:0 16px 44px rgba(15,23,42,.055);
}
.wflb-crm-contact-profile{padding:20px;position:sticky;top:18px;}
.wflb-crm-contact-profile h2,
.wflb-crm-contact-history h2{margin:0 0 8px;color:#0f172a;font-size:26px;line-height:1.1;font-weight:950;letter-spacing:-.03em;}
.wflb-crm-contact-profile p{margin:4px 0;color:#64748b;font-weight:850;word-break:break-word;}
.wflb-crm-contact-form{display:grid;gap:11px;margin-top:18px;}
.wflb-crm-contact-form label{display:grid;gap:6px;}
.wflb-crm-contact-form label span{color:#64748b;font-size:12px;font-weight:900;}
.wflb-crm-contact-history{padding:20px;display:grid;gap:14px;}
.wflb-crm-contact-history>.wflb-crm-card{cursor:default;}
.wflb-crm-contact-link{background:#eef6ff!important;color:#1769ff!important;}

@media(max-width:1180px){
  .wflb-crm-contact-grid{grid-template-columns:repeat(2,minmax(0,1fr));}
  .wflb-crm-contact-layout{grid-template-columns:1fr;}
  .wflb-crm-contact-profile{position:relative;top:auto;}
}
@media(max-width:760px){
  .wflb-front-crm{
    width:100%!important;
    margin-left:0!important;
    padding:12px 10px 96px!important;
    min-height:100svh!important;
  }
  .wflb-crm-hero{
    width:100%!important;
    margin:0 0 10px!important;
    padding:18px!important;
    border-radius:24px!important;
  }
  .wflb-crm-hero span{font-size:10px;margin-bottom:6px;}
  .wflb-crm-hero h1{font-size:28px!important;letter-spacing:-.04em;}
  .wflb-crm-hero p{font-size:14px;margin-top:8px;}
  .wflb-crm-tabs{
    position:fixed;
    left:10px;
    right:10px;
    bottom:12px;
    z-index:99999;
    width:auto!important;
    margin:0!important;
    display:grid!important;
    grid-template-columns:repeat(3,minmax(0,1fr));
    gap:7px!important;
    padding:8px;
    border:1px solid rgba(219,229,241,.92);
    border-radius:24px;
    background:rgba(255,255,255,.9)!important;
    backdrop-filter:blur(18px);
    -webkit-backdrop-filter:blur(18px);
    box-shadow:0 18px 50px rgba(15,23,42,.18);
  }
  .wflb-crm-tabs a{
    min-height:52px!important;
    padding:8px 6px!important;
    border-radius:18px!important;
    font-size:12px!important;
    line-height:1.15;
    box-shadow:none!important;
  }
  .wflb-crm-stats{
    width:100%!important;
    display:flex!important;
    grid-template-columns:none!important;
    overflow-x:auto;
    gap:10px!important;
    margin:0 0 12px!important;
    padding-bottom:2px;
    scroll-snap-type:x mandatory;
    -webkit-overflow-scrolling:touch;
  }
  .wflb-crm-stats>div{
    min-width:142px;
    padding:15px!important;
    border-radius:20px!important;
    scroll-snap-align:start;
  }
  .wflb-crm-stats span{font-size:12px;}
  .wflb-crm-stats strong{font-size:28px;}
  .wflb-crm-filters{
    width:100%!important;
    grid-template-columns:1fr!important;
    gap:9px!important;
    padding:12px!important;
    margin:0 0 12px!important;
    border-radius:22px!important;
  }
  .wflb-crm-filters label:nth-of-type(n+4){display:none;}
  .wflb-crm-filters button,
  .wflb-crm-reset{min-height:48px;height:auto!important;}
  .wflb-crm-kanban-toolbar,
  .wflb-crm-contacts-panel,
  .wflb-crm-contact-detail{width:100%!important;margin-bottom:12px!important;}
  .wflb-crm-add-status{grid-template-columns:1fr!important;padding:12px!important;border-radius:22px!important;}
  .wflb-crm-kanban{
    width:100%!important;
    display:flex!important;
    grid-template-columns:none!important;
    gap:12px!important;
    overflow-x:auto;
    padding:2px 2px 12px;
    scroll-snap-type:x mandatory;
    -webkit-overflow-scrolling:touch;
  }
  .wflb-crm-col{
    flex:0 0 86vw;
    min-width:86vw;
    padding:12px!important;
    border-radius:24px!important;
    scroll-snap-align:start;
  }
  .wflb-crm-col-head{position:sticky;top:0;z-index:2;margin:2px 2px 12px;}
  .wflb-crm-col-head h2{font-size:18px!important;}
  .wflb-crm-card{
    padding:14px!important;
    border-radius:24px!important;
    box-shadow:0 12px 34px rgba(15,23,42,.075)!important;
  }
  .wflb-crm-card:hover{transform:none!important;}
  .wflb-crm-card-top{display:grid!important;grid-template-columns:1fr;gap:9px;}
  .wflb-crm-status{justify-self:start;margin-top:0!important;min-height:28px;}
  .wflb-crm-meta a,.wflb-crm-meta span{min-height:34px;padding:7px 10px;font-size:12px;}
  .wflb-crm-details summary{min-height:42px;display:flex;align-items:center;}
  .wflb-crm-card-form button,
  .wflb-crm-card-actions button[type="button"]{min-height:48px;width:100%;}
  .wflb-crm-card-actions{display:grid!important;grid-template-columns:1fr!important;}
  .wflb-crm-table-wrap{width:100%!important;border-radius:22px!important;}
  .wflb-crm-table{min-width:820px;}
  .wflb-crm-contact-grid{grid-template-columns:1fr!important;gap:10px;}
  .wflb-crm-contact-card{min-height:142px;padding:16px;border-radius:22px;}
  .wflb-crm-contact-layout{grid-template-columns:1fr!important;gap:12px;}
  .wflb-crm-contact-profile,
  .wflb-crm-contact-history{padding:16px;border-radius:24px;}
  .wflb-crm-contact-profile h2,
  .wflb-crm-contact-history h2{font-size:24px;}
  .wflb-crm-contact-form button{min-height:50px;width:100%;}
}
.wflb-crm-kanban{grid-template-columns:repeat(auto-fit,minmax(320px,1fr))!important;}
