.edit-lock-banner {
  display: flex;
  flex: 1 0 100%;
  width: 100%;
  box-sizing: border-box;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 15px 18px;
  margin: 0 0 22px;
  border: 1px solid #e9d4ac;
  border-radius: 14px;
  background: #fdf5e4;
  color: #78521c;
  line-height: 1.55;
  font-size: .94rem;
  overflow-wrap: anywhere;
}
.edit-lock-banner[data-state="pending"] {
  background: #f6f5f8;
  border-color: #e4e0e7;
  color: #635d6a;
}
.edit-lock-banner .btn { flex: 0 0 auto; }
.edit-lock-readonly [aria-disabled="true"] { cursor: default; }
.edit-lock-readonly button[aria-disabled="true"] { opacity: .55; }
.edit-lock-readonly input[readonly],
.edit-lock-readonly textarea[readonly] { background-color: #f8f7f9; }
.contract-edit-lock { position: sticky; top: 12px; z-index: 3; }
.contract-edit-lock-readonly canvas { cursor: default; touch-action: pan-y; }
/* A quiet sweep on fields and explicitly marked choice rows/actions while
   editing rights are checked. Original backgrounds remain underneath. */
.edit-lock-checking-field {
  --edit-lock-check-gloss: linear-gradient(112deg, rgba(160, 28, 85, 0) 34%, rgba(160, 28, 85, .055) 44%, rgba(255, 255, 255, .88) 50%, rgba(160, 28, 85, .045) 56%, rgba(160, 28, 85, 0) 66%);
}
.edit-lock-readonly button.edit-lock-checking-field[aria-disabled="true"] { opacity: 1; }
@media (prefers-reduced-motion: reduce) {
  .edit-lock-checking-field { --edit-lock-check-gloss: none; }
}
@media (max-width: 760px) {
  .edit-lock-banner { align-items: stretch; flex-direction: column; gap: 10px; padding: 14px; }
  .edit-lock-banner .btn { align-self: flex-start; }
}
