html.semplora-cloud-gated .app{visibility:hidden;pointer-events:none}
html.semplora-cloud-gated,html.semplora-cloud-gated body{overflow:hidden}
#semploraCloudRoot{position:fixed;inset:0;z-index:100;display:none;background:linear-gradient(145deg,#f4f7fc,#eaf1ff);color:#111827;overflow:auto}
html[data-cloud-state="auth"] #semploraCloudRoot,html[data-cloud-state="error"] #semploraCloudRoot{display:block}
.cloudAuthShell{min-height:100%;display:grid;place-items:center;padding:24px 16px}
.cloudAuthCard{width:min(430px,100%);background:#fff;border:1px solid #e1e8f3;border-radius:28px;padding:28px;box-shadow:0 22px 60px rgba(17,24,39,.12)}
.cloudAuthBrand{display:flex;align-items:center;gap:11px;margin-bottom:26px}
.cloudAuthBrand .logo{width:44px;height:44px;border-radius:14px}
.cloudAuthBrand .brandword{font-size:25px;font-weight:950;letter-spacing:-.8px;line-height:1}
.cloudAuthBrand .brandword span{color:#6d5dfc}
.cloudAuthCompany{display:block;color:#7b8494;font-size:12px;font-weight:750;margin-top:5px}
.cloudAuthCard h1{font-size:24px;letter-spacing:-.4px;margin:0 0 7px}
.cloudAuthLead{color:#6b7280;font-size:14px;line-height:1.45;margin:0 0 20px}
.cloudAuthForm{display:grid;gap:13px}
.cloudAuthForm label{font-size:12px;font-weight:850;color:#6b7280}
.cloudAuthForm input{margin-top:6px;min-height:50px;font-size:16px}
.cloudAuthSubmit{width:100%;min-height:52px;border:0;border-radius:15px;background:linear-gradient(135deg,#2864ee,#174fd5);color:#fff;font-weight:900;cursor:pointer}
.cloudAuthSubmit:disabled{opacity:.55;cursor:wait}
.cloudAuthLink{border:0;background:transparent;color:#2864ee;font-weight:850;cursor:pointer;padding:5px 0;text-align:left}
.cloudAuthBack{border:0;background:#eef3fb;color:#2864ee;border-radius:12px;padding:9px 12px;font-weight:850;cursor:pointer}
.cloudStatus{min-height:20px;margin:12px 0 0;font-size:13px;line-height:1.4;color:#b42318}
.cloudStatus.ok{color:#16855b}
.cloudStatus.info{color:#6b7280}
.cloudAuthNote{font-size:11px;color:#8b95a5;line-height:1.45;margin:22px 0 0}
.cloudAccountRow{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}
.cloudAccountEmail{color:#6b7280;font-size:13px;word-break:break-word}
.cloudLogout{border:0;border-radius:12px;padding:10px 12px;background:#fdebea;color:#b42318;font-weight:850;cursor:pointer}
.cloudCompanyBadge{display:inline-flex;align-items:center;gap:6px;margin-left:8px;border-radius:999px;padding:6px 10px;background:#e7f7ef;color:#16855b;font-size:11px;font-weight:900}
.cloudClientAdd{border:0;border-radius:13px;background:#2864ee;color:#fff;padding:10px 13px;font-weight:900;cursor:pointer}
.cloudClientEditor{width:min(760px,100%);max-height:92vh;overflow:auto;background:#f4f7fc;border-radius:26px;padding:22px;box-shadow:0 18px 50px rgba(0,0,0,.18)}
.cloudClientEditor h2{margin:0;font-size:22px}
.cloudClientEditorHead{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:14px}
.cloudClientEditor .form{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.cloudClientEditor .field{display:flex;flex-direction:column;gap:6px}
.cloudClientEditor .field.full{grid-column:1/-1}
.cloudClientEditor .field label{font-size:12px;font-weight:850;color:#6b7280}
.cloudClientEditor input,.cloudClientEditor textarea,.cloudClientEditor select{font-size:16px;min-height:48px}
.cloudClientEditor textarea{min-height:90px}
.cloudBooleanField{display:flex;align-items:center;gap:8px}
.cloudBooleanField input{width:20px;min-height:20px;accent-color:#2864ee}
.cloudClientEditorActions{display:flex;gap:9px;flex-wrap:wrap;margin-top:16px}
.cloudDuplicateNotice{display:grid;gap:9px;margin:14px 0 0;padding:13px;border:1px solid #f4d37f;background:#fff8df;border-radius:15px;color:#684f00;font-size:13px;line-height:1.4}
.cloudDuplicateItem{display:flex;justify-content:space-between;align-items:center;gap:8px;padding:9px;background:#fff;border-radius:11px;border:1px solid #f0e3b7}
.cloudDuplicateItem button{border:0;border-radius:9px;padding:8px 9px;background:#eaf1ff;color:#2864ee;font-weight:850;cursor:pointer;white-space:nowrap}
.cloudDuplicateActions{display:flex;gap:8px;flex-wrap:wrap;margin-top:2px}
.cloudDuplicateActions button{border:0;border-radius:10px;padding:9px 11px;font-weight:850;cursor:pointer}
.cloudDuplicateActions .primary{background:#2864ee;color:#fff}
.cloudDuplicateActions .muted{background:#edf2f8;color:#27364a}
.cloudNewClientHint{display:flex;justify-content:space-between;align-items:center;gap:8px;margin-top:6px;font-size:12px;color:#6b7280}
.cloudNewClientHint button{border:0;background:transparent;color:#2864ee;font-weight:900;cursor:pointer;padding:0}
.cloudCustomFieldBlock{display:grid;gap:10px;padding:13px;background:#fff;border:1px solid #e5eaf2;border-radius:15px}
.cloudCustomFieldBlock h3{font-size:13px;margin:0;color:#5b4bd8}
.cloudClientInfo{color:#6b7280;font-size:13px;line-height:1.55;margin-top:4px}
.cloudClientDetailActions{display:flex;gap:8px;flex-wrap:wrap;margin-top:14px}
.cloudClientDetailActions button{border:0;border-radius:12px;padding:10px 12px;background:#eaf1ff;color:#2864ee;font-weight:850;cursor:pointer}
@media(max-width:600px){
  .cloudAuthCard{padding:22px;border-radius:23px}
  .cloudClientEditor{width:100%;min-height:100%;max-height:none;border-radius:0;padding:16px 12px calc(18px + env(safe-area-inset-bottom))}
  .cloudClientEditor .form{grid-template-columns:1fr}
  .cloudClientEditor .field.full{grid-column:auto}
  .cloudClientEditorHead{position:sticky;top:0;z-index:2;background:#f4f7fc;padding:2px 0 12px}
}
