/* Commitment creation is an administrative surface. Keep it legible even
   when tenant branding or the global dark theme uses light text tokens. */
#commitmentBackdrop{padding:clamp(12px,3vw,32px);overflow:auto;align-items:center;justify-content:center}
body[data-visual-system="nplus1"] #commitmentBackdrop>.commitmentDialog{
  box-sizing:border-box;width:min(1280px,calc(100vw - 32px));max-width:1280px;
  max-height:calc(100dvh - 32px);overflow:auto;padding:36px 40px 24px;
  border:1px solid #d7e5f3!important;border-radius:24px!important;background:#fff!important;
  color:#0b1f42!important;box-shadow:0 24px 70px rgba(20,52,91,.2)!important;
}
body[data-visual-system="nplus1"] #commitmentBackdrop>.commitmentDialog :is(h3,label){color:#091a3a!important;-webkit-text-fill-color:#091a3a!important}
body[data-visual-system="nplus1"] #commitmentBackdrop>.commitmentDialog #commitmentDialogTitle,
body[data-visual-system="nplus1"] #commitmentBackdrop>.commitmentDialog .commitmentFormGrid>.field>label{color:#091a3a!important;-webkit-text-fill-color:#091a3a!important}
body[data-visual-system="nplus1"] #commitmentBackdrop>.commitmentDialog .modalHeader small{color:#58708f!important;-webkit-text-fill-color:#58708f!important;opacity:1!important}
#commitmentBackdrop .commitmentDialogHeader{position:relative!important;display:flex!important;align-items:flex-start!important;justify-content:space-between!important;gap:24px!important;padding:0 0 42px!important}
#commitmentBackdrop .commitmentDialogIdentity{display:flex;align-items:center;gap:28px;min-width:0}
#commitmentBackdrop .commitmentDialogIdentity h3{margin:0 0 7px!important;font-size:clamp(32px,3.5vw,50px)!important;line-height:1!important;letter-spacing:-.035em}
#commitmentBackdrop .commitmentDialogIdentity small{display:block;font-size:clamp(17px,2vw,28px)!important;line-height:1.25!important}
#commitmentBackdrop .commitmentHeroIcon{display:grid;width:108px;height:108px;flex:0 0 108px;place-items:center;border-radius:20px;background:#eaf4ff;color:#0877ef}
#commitmentBackdrop .commitmentHeroIcon svg{width:58px;height:58px}
body[data-visual-system="nplus1"] #commitmentBackdrop>.commitmentDialog .commitmentIcon{color:#0877ef!important;-webkit-text-fill-color:#0877ef!important}
#commitmentBackdrop .commitmentIcon svg,#commitmentBackdrop #commitmentSave svg,#commitmentBackdrop #commitmentClose svg,#commitmentBackdrop .commitmentSelectLike svg{display:block;fill:none;stroke:currentColor;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}
#commitmentBackdrop #commitmentClose{position:static!important;display:grid!important;width:72px;height:72px;min-width:72px;min-height:72px;margin-left:auto!important;padding:0!important;place-items:center;border:0!important;border-radius:18px!important;background:#f1f5fa!important;color:#18345a!important;box-shadow:none!important}
#commitmentBackdrop #commitmentClose svg{width:38px;height:38px}
#commitmentBackdrop .commitmentFormGrid{display:grid!important;grid-template-columns:minmax(0,1fr) minmax(0,1fr)!important;gap:38px 52px!important}
#commitmentBackdrop .commitmentFormGrid>.field{display:grid!important;align-content:start;gap:14px!important;min-width:0}
#commitmentBackdrop .commitmentFormGrid>.field.span2{grid-column:1/-1!important}
#commitmentBackdrop .commitmentFormGrid label{display:flex!important;align-items:center!important;gap:7px!important;margin:0!important;font-size:25px!important;font-weight:800!important;line-height:1.2!important}
#commitmentBackdrop .commitmentRequired{color:#e0333e!important;-webkit-text-fill-color:#e0333e!important}
body[data-visual-system="nplus1"] #commitmentBackdrop>.commitmentDialog :is(input:not([type="checkbox"]):not([type="radio"]),select,textarea){box-sizing:border-box;width:100%;min-width:0!important;max-width:100%!important;border:1px solid #aebfd3!important;border-radius:14px!important;background:#fff!important;color:#0b1f42!important;-webkit-text-fill-color:#0b1f42!important;box-shadow:0 1px 2px rgba(20,52,91,.04)!important;font-size:23px!important}
#commitmentBackdrop>.commitmentDialog :is(input:not([type="checkbox"]):not([type="radio"]),select){height:82px!important;padding:0 36px!important}
#commitmentBackdrop>.commitmentDialog textarea{min-height:260px!important;padding:26px 36px!important;resize:vertical}
#commitmentBackdrop>.commitmentDialog :is(input,textarea)::placeholder{color:#6c819e!important;-webkit-text-fill-color:#6c819e!important;opacity:1!important}
#commitmentBackdrop>.commitmentDialog :is(input,select,textarea):focus-visible{outline:3px solid rgba(0,111,238,.3)!important;outline-offset:2px;border-color:#0877ef!important}
#commitmentBackdrop .commitmentSelectLike{position:relative;display:block}
#commitmentBackdrop .commitmentSelectLike input:disabled{opacity:1!important;cursor:default;background:#fff!important;color:#0b1f42!important;-webkit-text-fill-color:#0b1f42!important;padding-right:74px!important}
#commitmentBackdrop .commitmentSelectLike svg{position:absolute;right:30px;top:50%;width:27px;height:27px;transform:translateY(-50%);color:#0b1f42;pointer-events:none}
#commitmentBackdrop .relationshipFormStatus{margin:0 0 26px!important;color:#0b1f42!important;-webkit-text-fill-color:#0b1f42!important;background:#eef6ff!important;border-color:#86b9ef!important}
#commitmentBackdrop .commitmentActions{position:sticky;bottom:-24px;z-index:2;display:flex!important;justify-content:flex-end!important;gap:18px!important;margin:52px -40px -24px!important;padding:32px 40px 24px!important;border-top:1px solid #dbe7f3;background:#fff!important}
#commitmentBackdrop .commitmentActions .btn{display:inline-flex!important;align-items:center!important;justify-content:center!important;min-height:76px!important;padding:0 48px!important;border:1px solid #1475e5!important;border-radius:14px!important;background:#fff!important;color:#1261c5!important;-webkit-text-fill-color:#1261c5!important;font-size:22px!important;font-weight:800!important}
#commitmentBackdrop .commitmentActions .primary{min-width:430px;background:#1768df!important;color:#fff!important;-webkit-text-fill-color:#fff!important;border-color:#1768df!important;box-shadow:0 10px 22px rgba(8,91,202,.23)!important}
#commitmentBackdrop #commitmentSave svg{width:30px;height:30px;margin-right:14px}
#commitmentBackdrop .commitmentActions .btn:disabled{opacity:.58!important;cursor:wait}

@media(max-width:720px){
  #commitmentBackdrop{padding:8px;align-items:flex-start}
  #commitmentBackdrop>.commitmentDialog{width:calc(100vw - 16px);max-height:calc(100dvh - 16px);padding:20px 16px 16px;border-radius:18px!important}
  #commitmentBackdrop .commitmentDialogHeader{gap:12px!important;padding-bottom:26px!important}
  #commitmentBackdrop .commitmentDialogIdentity{gap:14px;align-items:flex-start}
  #commitmentBackdrop .commitmentHeroIcon{width:54px;height:54px;flex-basis:54px;border-radius:13px}
  #commitmentBackdrop .commitmentHeroIcon svg{width:31px;height:31px}
  #commitmentBackdrop .commitmentDialogIdentity h3{font-size:28px!important;line-height:1.05!important}
  #commitmentBackdrop .commitmentDialogIdentity small{font-size:15px!important}
  #commitmentBackdrop #commitmentClose{width:48px;height:48px;min-width:48px;min-height:48px;border-radius:12px!important}
  #commitmentBackdrop #commitmentClose svg{width:27px;height:27px}
  #commitmentBackdrop .commitmentFormGrid{grid-template-columns:minmax(0,1fr)!important;gap:22px!important}
  #commitmentBackdrop .commitmentFormGrid>.field.span2{grid-column:auto!important}
  #commitmentBackdrop .commitmentFormGrid label{font-size:17px!important}
  #commitmentBackdrop>.commitmentDialog :is(input:not([type="checkbox"]):not([type="radio"]),select){height:58px!important;padding:0 16px!important;font-size:17px!important}
  #commitmentBackdrop>.commitmentDialog textarea{min-height:170px!important;padding:16px!important;font-size:17px!important}
  #commitmentBackdrop .commitmentSelectLike input:disabled{padding-right:48px!important}
  #commitmentBackdrop .commitmentSelectLike svg{right:15px;width:22px;height:22px}
  #commitmentBackdrop .commitmentActions{bottom:-16px;display:grid!important;grid-template-columns:minmax(0,1fr) minmax(0,1.55fr);gap:10px!important;margin:28px -15px -16px!important;padding:16px 15px!important}
  #commitmentBackdrop .commitmentActions .btn{min-width:0!important;min-height:58px!important;padding:0 10px!important;font-size:15px!important}
  #commitmentBackdrop #commitmentSave svg{width:23px;height:23px;margin-right:7px}
}
