/* ============================================================
   SPONSORTRACK_R28B1_SPONSOR_EDIT_UI_REPAIR
   Dedicated late-loaded stylesheet for /sponsors/edit.
   ============================================================ */

body.st-page-sponsors-edit .page,
body.st-page-sponsors .page:has(.r28b-edit-card){
  max-width:none!important;
}

body.st-page-sponsors-edit .page-head,
body.st-page-sponsors .page:has(.r28b-edit-card) .page-head{
  margin-bottom:16px!important;
  align-items:flex-start!important;
}

body.st-page-sponsors-edit .page-head .actions,
body.st-page-sponsors .page:has(.r28b-edit-card) .page-head .actions{
  display:flex!important;
  gap:8px!important;
  flex-wrap:wrap!important;
}

body.st-page-sponsors-edit .r28b-edit-card,
body.st-page-sponsors .r28b-edit-card{
  display:block!important;
  width:100%!important;
  max-width:none!important;
  margin:0!important;
  padding:0!important;
  overflow:hidden!important;
  border:1px solid #d6e1ec!important;
  border-radius:14px!important;
  background:#fff!important;
  box-shadow:0 10px 30px rgba(9,37,72,.045)!important;
}

body.st-page-sponsors-edit .r28b-edit-head,
body.st-page-sponsors .r28b-edit-head{
  display:flex!important;
  align-items:flex-start!important;
  justify-content:space-between!important;
  gap:24px!important;
  padding:20px 22px!important;
  margin:0!important;
  border-bottom:1px solid #dde6ef!important;
  background:linear-gradient(135deg,#ffffff 0%,#f7fbff 100%)!important;
}

body.st-page-sponsors-edit .r28b-edit-head > div:first-child,
body.st-page-sponsors .r28b-edit-head > div:first-child{
  min-width:0!important;
  flex:1 1 auto!important;
}

body.st-page-sponsors-edit .r28b-edit-head span,
body.st-page-sponsors .r28b-edit-head span{
  display:block!important;
  margin:0 0 5px!important;
  font-size:10px!important;
  line-height:1.2!important;
  font-weight:900!important;
  letter-spacing:.11em!important;
  text-transform:uppercase!important;
  color:#8a6810!important;
}

body.st-page-sponsors-edit .r28b-edit-head h2,
body.st-page-sponsors .r28b-edit-head h2{
  margin:0 0 5px!important;
  font-size:22px!important;
  line-height:1.2!important;
  color:#082d57!important;
}

body.st-page-sponsors-edit .r28b-edit-head p,
body.st-page-sponsors .r28b-edit-head p{
  margin:0!important;
  max-width:760px!important;
  font-size:12px!important;
  line-height:1.5!important;
  color:#697d92!important;
}

body.st-page-sponsors-edit .r28b-safe-badge,
body.st-page-sponsors .r28b-safe-badge{
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  flex:0 0 auto!important;
  min-height:30px!important;
  padding:6px 11px!important;
  border:1px solid #c9e7d7!important;
  border-radius:999px!important;
  background:#edf9f2!important;
  color:#176b4b!important;
  font-size:10px!important;
  font-weight:900!important;
  white-space:nowrap!important;
}

body.st-page-sponsors-edit .r28b-form,
body.st-page-sponsors .r28b-form{
  display:block!important;
  padding:22px!important;
  margin:0!important;
}

body.st-page-sponsors-edit .r28b-grid,
body.st-page-sponsors .r28b-grid{
  display:grid!important;
  grid-template-columns:repeat(2,minmax(0,1fr))!important;
  gap:15px 16px!important;
  width:100%!important;
  align-items:start!important;
}

body.st-page-sponsors-edit .r28b-grid .field,
body.st-page-sponsors .r28b-grid .field{
  display:block!important;
  min-width:0!important;
  width:100%!important;
  margin:0!important;
}

body.st-page-sponsors-edit .r28b-grid .field.r28b-wide,
body.st-page-sponsors .r28b-grid .field.r28b-wide{
  grid-column:1 / -1!important;
}

body.st-page-sponsors-edit .r28b-grid .field label,
body.st-page-sponsors .r28b-grid .field label{
  display:block!important;
  margin:0 0 6px!important;
  color:#163654!important;
  font-size:11px!important;
  line-height:1.3!important;
  font-weight:800!important;
}

body.st-page-sponsors-edit .r28b-grid input,
body.st-page-sponsors-edit .r28b-grid textarea,
body.st-page-sponsors .r28b-grid input,
body.st-page-sponsors .r28b-grid textarea{
  display:block!important;
  width:100%!important;
  max-width:none!important;
  min-width:0!important;
  margin:0!important;
  border:1px solid #cbd8e5!important;
  border-radius:9px!important;
  background:#fff!important;
  color:#0b2748!important;
  box-shadow:none!important;
  outline:none!important;
  font-size:12px!important;
  line-height:1.45!important;
  transition:border-color .15s ease,box-shadow .15s ease!important;
}

body.st-page-sponsors-edit .r28b-grid input,
body.st-page-sponsors .r28b-grid input{
  min-height:40px!important;
  padding:9px 11px!important;
}

body.st-page-sponsors-edit .r28b-grid textarea,
body.st-page-sponsors .r28b-grid textarea{
  min-height:90px!important;
  padding:10px 11px!important;
  resize:vertical!important;
}

body.st-page-sponsors-edit .r28b-grid .field:last-of-type textarea,
body.st-page-sponsors .r28b-grid .field:last-of-type textarea{
  min-height:110px!important;
}

body.st-page-sponsors-edit .r28b-grid input:focus,
body.st-page-sponsors-edit .r28b-grid textarea:focus,
body.st-page-sponsors .r28b-grid input:focus,
body.st-page-sponsors .r28b-grid textarea:focus{
  border-color:#5d8fbd!important;
  box-shadow:0 0 0 3px rgba(33,94,149,.10)!important;
}

body.st-page-sponsors-edit .r28b-form-actions,
body.st-page-sponsors .r28b-form-actions{
  display:flex!important;
  align-items:center!important;
  justify-content:flex-end!important;
  gap:9px!important;
  margin:20px 0 0!important;
  padding:18px 0 0!important;
  border-top:1px solid #e0e8f0!important;
}

body.st-page-sponsors-edit .r28b-form-actions .btn,
body.st-page-sponsors .r28b-form-actions .btn{
  min-height:38px!important;
  padding:9px 14px!important;
}

body.st-page-sponsors-edit .r28b-notice,
body.st-page-sponsors .r28b-notice{
  margin:14px 0 0!important;
  padding:12px 14px!important;
  border:1px solid #d6e4ee!important;
  border-radius:10px!important;
  background:#f8fbfd!important;
  color:#597087!important;
  font-size:11px!important;
  line-height:1.5!important;
}

body.st-page-sponsors-edit .r28b-notice strong,
body.st-page-sponsors .r28b-notice strong{
  color:#173b5d!important;
}

@media (max-width: 980px){
  body.st-page-sponsors-edit .r28b-grid,
  body.st-page-sponsors .r28b-grid{
    grid-template-columns:1fr!important;
  }

  body.st-page-sponsors-edit .r28b-grid .field.r28b-wide,
  body.st-page-sponsors .r28b-grid .field.r28b-wide{
    grid-column:auto!important;
  }
}

@media (max-width: 760px){
  body.st-page-sponsors-edit .r28b-edit-head,
  body.st-page-sponsors .r28b-edit-head{
    flex-direction:column!important;
    gap:12px!important;
    padding:17px!important;
  }

  body.st-page-sponsors-edit .r28b-edit-head h2,
  body.st-page-sponsors .r28b-edit-head h2{
    font-size:20px!important;
  }

  body.st-page-sponsors-edit .r28b-form,
  body.st-page-sponsors .r28b-form{
    padding:17px!important;
  }

  body.st-page-sponsors-edit .r28b-form-actions,
  body.st-page-sponsors .r28b-form-actions{
    flex-direction:column-reverse!important;
    align-items:stretch!important;
  }

  body.st-page-sponsors-edit .r28b-form-actions .btn,
  body.st-page-sponsors .r28b-form-actions .btn{
    width:100%!important;
    justify-content:center!important;
  }
}
